The static class providing access on Windows platform
to system means for generating true random bits.
It uses a native method to get the random bits from CryptGenRandom.
If the required library is not installed
the provider shouldn't register the algorithm.
Method Summary
public static synchronized byte[]
getRandomBits(int numBytes) The method returns byte array containing random bits.
static boolean
isServiceAvailable() The method is called by provider to determine if a device is available.
Method Detail
getRandomBits
public static synchronized byte[] getRandomBits(int numBytes)(Code)
The method returns byte array containing random bits.
Parameters: numBytes - - length of bytes requestedbyte array throws: InvalidArgumentException - - if numBytes <= 0 ProviderException - if some problem related to native library is discovered