UNPKG
fable-uuid
Version:
latest (3.0.11)
3.0.11
3.0.10
3.0.9
3.0.8
3.0.7
3.0.6
3.0.5
3.0.4
3.0.3
3.0.2
3.0.1
2.0.2
2.0.1
2.0.0
1.0.3
1.0.2
1.0.1
0.1.3
0.1.2
0.1.1
0.0.0
A simple UUID Generator.
github.com/stevenvelozo/fable-uuid
stevenvelozo/fable-uuid
fable-uuid
/
source
/
Fable-UUID-Random.js
23 lines
(18 loc)
•
245 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/** * Random Byte Generator * * *
@author
Steven Velozo <steven
@velozo
.com> */
let
libCrypto =
require
(
'crypto'
);
class
RandomBytes
{
constructor
(
) { }
generate
(
) {
return
libCrypto.
randomBytes
(
16
); } }
module
.
exports
=
RandomBytes
;