OpenCryptRandom()
Syntax
Result = OpenCryptRandom()Description
Opens the cryptographic safe pseudorandom number generator. The CryptRandom() and CryptRandomData() commands can be used to read data from the opened generator.
This generator provides random data which is strong enough for cryptographic purposes such as generating keys for the AESEncoder() function. The source for the random data is the "/dev/urandom" device on Linux or Mac OSX and the "Microsoft Cryptography API" on Windows.
Return value
Returns non-zero if the random number generator could be sucessfully opened. If the result is zero then there is no cryptographic safe random number generator available on the system.
See the CryptRandomData() command for an example.
Supported OS
All