Comment by antirez Comment by antirez 7 days ago 1 reply Copy Link View on Hacker News Feistel networks are another way to map your index from linear sequence to a pseudorandom permutation.
Copy Link brandonasuncion 7 days ago Collapse Comment - I was reading into it and came across your blog post. It's a good followup read.It has better avalanching compared to indexing by `(i * prime) % n`, but at the tradeoff of `n` being restricted to powers of 2. Reply View | 0 replies
I was reading into it and came across your blog post. It's a good followup read.
It has better avalanching compared to indexing by `(i * prime) % n`, but at the tradeoff of `n` being restricted to powers of 2.