The RandomGenerator class / security.RandomGenerator methods |
Generates a 8-byte strong random number.
security.RandomGenerator.CreateRandomNumber() RETURNING result BIGINT
Generates a 8-byte strong random number and returns it as a BIGINT.
The generated number can then be used for advanced cryptographic features.
This method is based on openssl, using /dev/random on Unix and CryptGenRandom() on Microsoft Windows, which are following CSPRNG specifications.
In case of error, the method throws an exception and sets the STATUS variable. Depending on the error, a human-readable description of the problem is available in the SQLCA.SQLERRM register. See Error handling in GWS calls (STATUS).