// Get an array of random bytes
const arr = new Uint8Array(32)
crypto.getRandomValues(arr)
const decoder = new TextDecoder("utf8")
btoa(decoder.decode(arr));
> Uncaught DOMException
// Get an array of random bytes
const arr = new Uint8Array(32)
crypto.getRandomValues(arr)
const decoder = new TextDecoder("utf8")
btoa(decoder.decode(arr));
> Uncaught DOMException