Comment

Comment by karmakaze

I searched "PCG Hash" and found this as part of a shader:

  uint PCGHash()
  {
    rng_state = rng_state * 747796405u + 2891336453u;
    uint state = rng_state;
    uint word = ((state >> ((state >> 28u) + 4u)) ^ state) * 277803737u;
    return (word >> 22u) ^ word;
  }
This doesn't look like FNV or any other hash function I know.
parent karmakaze 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton