4

The documentation for SecureRandom.getInstanceStrong() says that it returns a pRNG instance from the securerandom.strongAlgorithms java.security.Security property.

Is there Java documentation that lists these properties by platform?

Cory
  • 748
  • 7
  • 18

1 Answers1

5

Apparently not, you should expect such information here, but it just lists the algorithms without splitting them up per OS.

You can however print the list from your local JRE with

java.security.Security.getProperty( "securerandom.strongAlgorithms" )

For example, my Windows 7 machine returns the algorithms:

Windows-PRNG:SunMSCAPI
SHA1PRNG:SUN

While a Linux platform will return

NativePRNGBlocking:SUN

which will normally result in random values read from /dev/random as per documentation.

Maarten Bodewes
  • 90,524
  • 13
  • 150
  • 263
Cory
  • 748
  • 7
  • 18