Generate random seeds in handlers and improve log formatting.