implement createRandomInteger
This commit is contained in:
parent
4d9060f49e
commit
fd83ae3e61
@ -131,5 +131,9 @@ define([], function () {
|
|||||||
return g;
|
return g;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Util.createRandomInteger = function () {
|
||||||
|
return Math.floor(Math.random() * Number.MAX_SAFE_INTEGER);
|
||||||
|
};
|
||||||
|
|
||||||
return Util;
|
return Util;
|
||||||
});
|
});
|
||||||
|
|||||||
@ -72,6 +72,7 @@ define([
|
|||||||
common.bytesToKilobytes = Util.bytesToKilobytes;
|
common.bytesToKilobytes = Util.bytesToKilobytes;
|
||||||
common.fetch = Util.fetch;
|
common.fetch = Util.fetch;
|
||||||
common.throttle = Util.throttle;
|
common.throttle = Util.throttle;
|
||||||
|
common.createRandomInteger = Util.createRandomInteger;
|
||||||
|
|
||||||
// import hash utilities for export
|
// import hash utilities for export
|
||||||
var createRandomHash = common.createRandomHash = Hash.createRandomHash;
|
var createRandomHash = common.createRandomHash = Hash.createRandomHash;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user