CryptRandom

Description: Returns a buffer of random byte values.
Returns: Text
Usage: Script Only.
Function Groups: Cryptography
Related to: GenerateHMAC | Hash |DeriveKey |Encrypt |Decrypt |
Format: CryptRandom(Length)
Parameters:  
Length
Required. Any numeric expression giving the number of bytes to create.
Comments The randomness complies with NIST SP800-90.

Example:

[
  RandomText;
]
Init[
  If 1 Main;
  [
    RandomText = CryptRandom(16);
  ]
]
Main [ ...

RandomText will contain a buffer with 16 bytes of random values.