diff options
author | kumavis <kumavis@users.noreply.github.com> | 2016-11-18 06:29:35 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-18 06:29:35 +0800 |
commit | 39e0a33bba2709971edec0304027f646cb2db3cc (patch) | |
tree | e33b1e98630960eb2a5668d516a3df0cd8e4530a /app | |
parent | 6400eb8453c173e04e59d7990bd2c79afb3493be (diff) | |
download | tangerine-wallet-browser-39e0a33bba2709971edec0304027f646cb2db3cc.tar tangerine-wallet-browser-39e0a33bba2709971edec0304027f646cb2db3cc.tar.gz tangerine-wallet-browser-39e0a33bba2709971edec0304027f646cb2db3cc.tar.bz2 tangerine-wallet-browser-39e0a33bba2709971edec0304027f646cb2db3cc.tar.lz tangerine-wallet-browser-39e0a33bba2709971edec0304027f646cb2db3cc.tar.xz tangerine-wallet-browser-39e0a33bba2709971edec0304027f646cb2db3cc.tar.zst tangerine-wallet-browser-39e0a33bba2709971edec0304027f646cb2db3cc.zip |
random-id - use Number.MAX_SAFE_INTEGER as max
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/lib/random-id.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/lib/random-id.js b/app/scripts/lib/random-id.js index 3c5ae5600..78d9e34a5 100644 --- a/app/scripts/lib/random-id.js +++ b/app/scripts/lib/random-id.js @@ -1,4 +1,4 @@ -const MAX = 1000000000 +const MAX = Number.MAX_SAFE_INTEGER let idCounter = Math.round( Math.random() * MAX ) function createRandomId() { |