Seeking Official Crypto Library for Random Value Generation in JavaScript

Is there an official Effect wrapper/library for Crypto?

In my codebase I use code snippets like the following to create random array of values to use as identifiers, but it feels a bit weird to rely on globalThis.crypto.
const state = new Uint8Array(32);
crypto.getRandomValues(state);


I could wrap it myself into a Service with my own API, I am just wondering if there is any official support.
Was this page helpful?