Performance of /dev/urandom and /dev/random

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey guys,

I'm interested to know why generating cryptographically secure random numbers takes so long, particularly in my case. I have two Java classes that are generating a million random numbers. One is generating random numbers regularly while the other is using SecureRandom to generate the numbers. The SecureRandom method is taking almost double the time and I realised that it's because the method reads from /dev/urandom (not sure which) and obtains its random numbers from the entropy pool there.

I wanted to know where I can read about the exact mechanism used to generate the cryptographically secure random numbers through SecureRandom and if there is any way to make it faster.

--
Mihir Pandya

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux