RandomSource
represents a source of cryptographically secure random numbers. It is available via the {{domxref("Crypto")}} object of the global object: {{domxref("Window.crypto")}} on Web pages, {{domxref("WorkerGlobalObject.crypto")}} in workers.
RandomSource
is a not an interface and no object of this type can be created.
Properties
RandomSource
neither defines nor inherits any property.
Methods
- {{ domxref("RandomSource.getRandomValues()") }}
- Fills the passed {{ jsxref("TypedArray") }} with cryptographically sound random values.