1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

random-id - use Number.MAX_SAFE_INTEGER as max

This commit is contained in:
kumavis 2016-11-17 14:29:35 -08:00 committed by GitHub
parent 6400eb8453
commit 39e0a33bba

View File

@ -1,4 +1,4 @@
const MAX = 1000000000
const MAX = Number.MAX_SAFE_INTEGER
let idCounter = Math.round( Math.random() * MAX )
function createRandomId() {