diff --git a/src/modules/mersenne/index.ts b/src/modules/mersenne/index.ts index 5f60e867c07..f551edf337c 100644 --- a/src/modules/mersenne/index.ts +++ b/src/modules/mersenne/index.ts @@ -8,7 +8,7 @@ export class MersenneModule { private gen = new Gen(); constructor() { - this.gen.initGenrand(new Date().getTime() % 1000000000); + this.gen.initGenrand(Math.ceil(Math.random() * Number.MAX_SAFE_INTEGER)); // Bind `this` so namespaced is working correctly for (const name of Object.getOwnPropertyNames(MersenneModule.prototype)) {