From 39e0a33bba2709971edec0304027f646cb2db3cc Mon Sep 17 00:00:00 2001 From: kumavis Date: Thu, 17 Nov 2016 14:29:35 -0800 Subject: random-id - use Number.MAX_SAFE_INTEGER as max --- app/scripts/lib/random-id.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/scripts') 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() { -- cgit v1.2.3