RandomSource
interface RandomSource
JavaScript: RandomSource
Base interface type which provides access to basic random data generation utilities; random bytes can be filled into a guest JS array (usually typed), and random UUIDs can be generated.
See method documentation for details.
See also
for details on random byte generation.
for details on random UUID generation.
Inheritors
Functions
Link copied to clipboard
From MDN: "The Crypto.getRandomValues() method lets you get cryptographically strong random values. The array given as the parameter is filled with random numbers (random in its cryptographic meaning).
Link copied to clipboard
From MDN: "The randomUUID
method of the Crypto interface is used to generate a v4 UUID using a cryptographically secure random number generator."