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:
parent
6400eb8453
commit
39e0a33bba
@ -1,4 +1,4 @@
|
|||||||
const MAX = 1000000000
|
const MAX = Number.MAX_SAFE_INTEGER
|
||||||
|
|
||||||
let idCounter = Math.round( Math.random() * MAX )
|
let idCounter = Math.round( Math.random() * MAX )
|
||||||
function createRandomId() {
|
function createRandomId() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user