UNPKG
fox-wamp
Version:
latest (0.7.28)
0.7.28
0.7.26
0.7.23
0.7.20
0.7.10
0.7.7
0.7.5
0.7.4
0.7.2
0.7.1
0.7.0
0.6.9
0.6.8
0.6.7
0.6.5
0.6.4
0.6.3
0.6.2
0.5.15
0.5.14
0.5.12
0.5.11
0.5.9
0.5.8
0.5.7
0.5.6
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.21
0.4.20
0.4.18
0.4.17
0.4.16
0.4.15
0.4.14
0.4.11
0.4.10
0.4.9
0.4.8
0.4.7
0.4.6
0.4.5
0.4.3
0.4.2
0.4.1
0.4.0
Web Application Message Router/Server WAMP/MQTT
github.com/kalmyk/fox-wamp
kalmyk/fox-wamp
fox-wamp
/
lib
/
tools.js
10 lines
(6 loc)
•
157 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
'use strict'
const
crypto =
require
(
'crypto'
)
function
randomId
(
) {
return
crypto.
randomBytes
(
6
).
readUIntBE
(
0
,
6
) }
module
.
exports
.
randomId
= randomId