mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2026-08-12 00:47:41 +00:00
6 lines
136 B
JavaScript
6 lines
136 B
JavaScript
export function makeRandom32() {
|
|
var array = new Uint32Array(32)
|
|
window.crypto.getRandomValues(array)
|
|
return Buffer.from(array)
|
|
}
|