mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-16 19:51:50 +00:00
reseed is never used
This commit is contained in:
parent
52f4827ac9
commit
30ddf89689
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user