1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-16 11:41:50 +00:00

reseed is never used

This commit is contained in:
mekb the turtle 2021-12-03 09:15:10 +11:00 committed by GitHub
parent 52f4827ac9
commit 30ddf89689
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,15 +70,7 @@ export class RandomNumberGenerator {
* @param {number|string=} seed
*/
constructor(seed) {
this.reseed(seed);
}
/**
* Re-seeds the generator
* @param {number|string} seed
*/
reseed(seed) {
this.internalRng = makeNewRng(seed || Math.random());
this.internalRng = makeNewRng(seed);
}
/**