News for hackers. Stuff that matters.
Re:A Simple Hash for Perlin Noise by pubby on Tuesday May 10, 2022 @06:32PM (#31333540)
I think I'm missing something. Why not call a PRNG for each array element? Seems like you could do this in 4 lines of code.
Re:A Simple Hash for Perlin Noise by foota on Tuesday May 10, 2022 @06:43PM (#31333630)
"I couldn’t rely on simple randomness since terrain generation has to be deterministic, especially for multiplayer games."

You want the results to be repeatable. Now you could seed with something, but this has tradeoffs (e.g., you have to produce the same order of elements in order to get the same values out)