implement createRandomInteger

This commit is contained in:
ansuz committed 2017-05-24 11:34:40 +02:00
1 parent 4d9060f49e
commit fd83ae3e61
2 files changed
+5

No files matched your search

+4
View File
@@ -131,5 +131,9 @@ define([], function () {
return g;
};
Util.createRandomInteger = function () {
return Math.floor(Math.random() * Number.MAX_SAFE_INTEGER);
};
return Util;
});
+1
View File
@@ -72,6 +72,7 @@ define([
common.bytesToKilobytes = Util.bytesToKilobytes;
common.fetch = Util.fetch;
common.throttle = Util.throttle;
common.createRandomInteger = Util.createRandomInteger;
// import hash utilities for export
var createRandomHash = common.createRandomHash = Hash.createRandomHash;