bsp-dungeon-generator icon indicating copy to clipboard operation
bsp-dungeon-generator copied to clipboard

The global Math.random is is being Monkey Patched after calling dungeon.generate.

Open joelnet opened this issue 2 years ago • 0 comments

This line used to seed Math.random is overwriting the global Math.random. This is affecting my game after I generate a dungeon.

  seedrandom(args.seed, { global: true });

Can we refactor this to keep the seeded random internal to the library and not overwrite the global Math.random?

joelnet avatar Feb 17 '23 18:02 joelnet