UNPKG
cross-channel
Version:
latest (0.6.2)
0.6.2
0.6.1
0.6.0
0.4.1
0.4.0
Cross window messaging
github.com/constgen/cross-channel
constgen/cross-channel
cross-channel
/
src
/
utils
/
generate-random-key.js
5 lines
(4 loc)
•
119 B
JavaScript
View Raw
1
2
3
4
5
'use strict'
module
.
exports
=
function
generateRandomKey
(
){
return
Math
.
round
(
Math
.
random
() *
Math
.
pow
(
10
,
15
)) }