This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Based on the GDC 2017 talk "Math for Game Programmers: Noise-Based RNG" | |
// https://www.youtube.com/watch?v=LWFzPP8ZbdU&ab_channel=GDC | |
const BIT_NOISE1 = 0xB5297A4D | |
const BIT_NOISE2 = 0x68E31DA4 | |
const BIT_NOISE3 = 0x1B56C4E9 | |
const PRIME1 = 198491317 | |
const PRIME2 = 6542989 | |
class Squirrel3 { |