aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2016-11-18 06:29:35 +0800
committerGitHub <noreply@github.com>2016-11-18 06:29:35 +0800
commit39e0a33bba2709971edec0304027f646cb2db3cc (patch)
treee33b1e98630960eb2a5668d516a3df0cd8e4530a /app/scripts/lib
parent6400eb8453c173e04e59d7990bd2c79afb3493be (diff)
downloadtangerine-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/scripts/lib')
-rw-r--r--app/scripts/lib/random-id.js2
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() {