mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-16 11:41:50 +00:00
use reseed for constructor, they do the exact same thing
This commit is contained in:
parent
a7a2aad2b6
commit
b251935c88
@ -70,7 +70,7 @@ export class RandomNumberGenerator {
|
||||
* @param {number|string=} seed
|
||||
*/
|
||||
constructor(seed) {
|
||||
this.internalRng = makeNewRng(seed || Math.random());
|
||||
reseed(seed);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user