rng.js 135 B

12345
  1. import crypto from 'crypto';
  2. const rnds8 = new Uint8Array(16);
  3. export default function rng() {
  4. return crypto.randomFillSync(rnds8);
  5. }