assertPRNGIsAvailable

function assertPRNGIsAvailable(): void;

Throws an exception unless `crypto.getRandomValues()` is available in the current JavaScript environment.

Returns

void

On this page