UNPKG
@goa/uuid
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
[fork] Simple, fast generation of RFC4122 UUIDS.
github.com/idiocc/uuid
idiocc/uuid
@goa/uuid
/
build
/
rng.js
7 lines
(5 loc)
•
117 B
JavaScript
View Raw
1
2
3
4
5
6
7
const
{ randomBytes } =
require
(
'crypto'
);
function
nodeRNG
(
) {
return
randomBytes
(
16
) }
module
.
exports
= nodeRNG