UNPKG

@lukeed/csprng

Version:

An alias package for `crypto.randomBytes` in Node.js and/or browsers

4 lines (3 loc) 85 B
export function random(len) { return crypto.getRandomValues(new Uint8Array(len)); }