Files
architype/utils.js

9 lines
188 B
JavaScript
Raw Normal View History

2019-07-03 01:42:17 +00:00
function randStr32() {
let num = Math.floor(Math.random() * Math.pow(2, 32));
return num.toString(16).padStart(8, '0');
}
function randStr64() {
return randStr32() + randStr32();
}