4 ms·
You can get the same result by hashing seed+level_id+some_counter, you don't really need a prng.
by aappleby 5y ago
You can get the same result by hashing seed+level_id+some_counter, you don't really need a prng.
- aappleby 5y agoThe _advance function in this prng is also way too weak, purely linear with a tiny bit of output mixing. Replacing self.state with the (64-bit) result of the xorshifts would help a lot.