aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/random-id.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/scripts/lib/random-id.js')
-rw-r--r--app/scripts/lib/random-id.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/scripts/lib/random-id.js b/app/scripts/lib/random-id.js
index 3c5ae5600..788f3370f 100644
--- a/app/scripts/lib/random-id.js
+++ b/app/scripts/lib/random-id.js
@@ -1,7 +1,7 @@
-const MAX = 1000000000
+const MAX = Number.MAX_SAFE_INTEGER
-let idCounter = Math.round( Math.random() * MAX )
-function createRandomId() {
+let idCounter = Math.round(Math.random() * MAX)
+function createRandomId () {
idCounter = idCounter % MAX
return idCounter++
}