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

use reseed for constructor, they do the exact same thing

This commit is contained in:
mekb the turtle 2021-12-02 16:58:56 +11:00 committed by GitHub
parent a7a2aad2b6
commit b251935c88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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