mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-09 00:28:51 +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)
|
|
}
|