UNPKG
zarbis
Version:
latest (2.4.0)
2.4.0
2.3.0
2.2.0
2.1.0
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.6.15
1.6.14
1.6.13
1.6.12
1.6.11
1.6.10
1.6.9
1.6.8
1.6.7
1.6.6
1.6.5
1.6.4
1.6.3
1.6.2
1.6.1
1.5.104
1.5.103
1.5.101
1.5.100
1.5.99
1.5.98
1.5.97
1.5.96
1.5.95
1.5.94
1.5.93
1.5.92
1.5.91
1.5.90
1.5.89
1.5.88
1.5.87
1.5.86
1.5.85
1.5.83
1.5.82
1.5.81
1.5.80
1.5.79
1.5.78
1.5.77
1.5.76
1.5.75
1.5.74
1.5.73
1.5.72
1.5.70
1.5.69
1.5.68
1.5.67
1.5.66
1.5.65
1.5.63
1.5.62
1.5.60
1.5.59
1.5.58
1.5.57
1.5.56
1.5.55
1.5.54
1.5.53
1.5.52
1.5.51
1.5.50
1.5.49
1.5.48
1.5.47
1.5.45
1.5.44
1.5.43
1.5.42
1.5.41
1.5.40
1.5.39
1.5.38
1.5.37
1.5.36
1.5.35
1.5.34
1.5.33
1.5.32
1.5.31
1.5.29
1.5.28
1.5.27
1.5.26
1.5.25
1.5.24
1.5.23
1.5.22
1.5.19
1.5.18
1.5.17
1.5.16
1.5.15
1.5.14
1.5.13
1.5.12
1.5.11
1.5.10
1.5.9
1.5.8
1.5.7
1.5.6
1.5.5
1.5.4
1.5.3
1.5.1
1.5.0
1.4.2
1.4.1
1.4.0
1.3.16
1.3.15
1.3.14
1.3.13
1.3.12
1.3.10
1.3.9
1.3.8
1.3.7
1.3.6
1.3.5
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.1.3
1.0.6
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.1.91
0.0.85
0.0.81
0.0.77
0.0.75
0.0.73
0.0.72
0.0.69
Configuration-less build tool
zarbis
/
browserLibs
/
modules
/
uuid
/
lib
/
rng.js
9 lines
(6 loc)
•
246 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
// Unique ID creation requires a high quality random # generator. In node.js
// this is pretty straight-forward - we use the crypto API.
var
crypto =
require
(
'crypto'
);
module
.
exports
=
function
nodeRNG
(
) {
return
crypto.
randomBytes
(
16
); };