UNPKG

uuid

Version:

RFC4122 (v1, v4, and v5) UUIDs

5 lines 135 B
import crypto from 'crypto'; const rnds8 = new Uint8Array(16); export default function rng() { return crypto.randomFillSync(rnds8); }