UNPKG
bot18
Version:
latest (0.4.31)
0.4.31
0.4.30
0.4.29
0.4.28
0.4.27
0.4.26
0.4.25
0.4.24
0.4.23
0.4.20
0.4.19
0.4.18
0.4.17
0.4.15
0.4.14
0.4.13
0.4.12
0.4.11
0.4.10
0.4.9
0.4.8
0.4.7
0.4.6
0.4.5
0.4.4
0.4.3
0.4.2
0.3.3
0.3.2
0.3.1
0.2.3
0.2.2
0.2.1
0.2.0
0.1.0
0.0.9
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
A high-frequency cryptocurrency trading bot by Zenbot creator @carlos8f
bot18.net
carlos8f/bot18
bot18
/
node_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
); };