mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-17 04:01:51 +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
|
* @param {number|string=} seed
|
||||||
*/
|
*/
|
||||||
constructor(seed) {
|
constructor(seed) {
|
||||||
this.reseed(seed);
|
this.internalRng = makeNewRng(seed);
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Re-seeds the generator
|
|
||||||
* @param {number|string} seed
|
|
||||||
*/
|
|
||||||
reseed(seed) {
|
|
||||||
this.internalRng = makeNewRng(seed || Math.random());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user