crypt.random
Returns a random number.
Syntax
crypt.random(count: number) -> string
Parameters
| Parameter | Type | Description |
|---|---|---|
count | number | The count value used by the call. |
Returns
| Type | Description |
|---|---|
string | A random number |
Description
crypt.random is part of the Crypt library. Crypt functions process data locally. Keys, hashes and encrypted buffers remain inside the process.
The operation is performed immediately using the arguments supplied at the call site.
Example
print(crypt.random(8))
Notes
- Never log keys or decrypted buffers in production scripts.