Switch to new Random implementation in core for key generation.