Is there any particular reason why this straightforward implementation of a well-known PRNG (published by Marsaglia 20 years ago) is worth being linked from HN's first page?
secret = (secret ^ secret << 6) & 0xFFFFFF;
secret = (secret ^ secret >> 5) & 0xFFFFFF;
secret = (secret ^ secret << 11) & 0xFFFFFF;
https://adventofcode.com/2024/day/22