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.
Trihedral and VTScada are registered trade marks of Trihedral Engineering Limited
© Trihedral Engineering Limited 1983- 2024 All rights reserved.