We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9884d0 commit 925db3aCopy full SHA for 925db3a
1 file changed
src/modules/mersenne/index.ts
@@ -8,7 +8,7 @@ export class MersenneModule {
8
private gen = new Gen();
9
10
constructor() {
11
- this.gen.initGenrand(new Date().getTime() % 1000000000);
+ this.gen.initGenrand(Math.ceil(Math.random() * Number.MAX_SAFE_INTEGER));
12
13
// Bind `this` so namespaced is working correctly
14
for (const name of Object.getOwnPropertyNames(MersenneModule.prototype)) {
0 commit comments