Yuari
Documentation
Docs/Crypt/crypt.random

crypt.random

Returns a random number.

Syntax

crypt.random(count: number) -> string

Parameters

ParameterTypeDescription
countnumberThe count value used by the call.

Returns

TypeDescription
stringA 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.