If your hardware supports it try using Java RdRand Utility of which I'm the author.
Its based on Intel's RDRAND
instruction and is about 10 times faster than SecureRandom
and no bandwidth issues for large volume implementation.
Note that this implementation only works on those CPU's that provide the instruction (i.e. when the rdrand
processor flag is set). You need to explicitly instantiate it through the RdRandRandom()
constructor; no specific Provider
has been implemented.