nupp.crypto
Cryptographically secure randomness from the provider retained at module load.
Setup may select nupp.runtime.services.contracts.crypto before requiring this module. The default uses the native host or browser host. For repeatable seeded sequences use nupp.random. Message digests and MACs live in nupp.digest and nupp.mac.
Module contents
Values
| Value | Kind | Description |
|---|---|---|
randomBytes | variable | Returns cryptographically secure random bytes from the selected host. |
Values#
randomBytesvariable#
const randomBytesReturns cryptographically secure random bytes from the selected host.
Raises
when the count is invalid or the host cannot supply randomness