[Paper Review] Randen - fast backtracking-resistant random generator with AES+Feistel+Reverie
Randen is a fast, backtracking-resistant pseudorandom number generator that combines AES, a generalized Feistel structure with 16 branches, and the Reverie sponge-like construction. It achieves strong security—indistinguishable from random and resistant to state compromise—while outperforming Mersenne Twister, PCG, ChaCha8, ISAAC, and Philox in real-world benchmarks, making it suitable as a secure, high-performance replacement for non-cryptographic applications.
Algorithms that rely on a pseudorandom number generator often lose their performance guarantees when adversaries can predict the behavior of the generator. To protect non-cryptographic applications against such attacks, we propose 'strong' pseudorandom generators characterized by two properties: computationally indistinguishable from random and backtracking-resistant. Some existing cryptographically secure generators also meet these criteria, but they are too slow to be accepted for general-purpose use. We introduce a new open-sourced generator called 'Randen' and show that it is 'strong' in addition to outperforming Mersenne Twister, PCG, ChaCha8, ISAAC and Philox in real-world benchmarks. This is made possible by hardware acceleration. Randen is an instantiation of Reverie, a recently published robust sponge-like random generator, with a new permutation built from an improved generalized Feistel structure with 16 branches. We provide new bounds on active s-boxes for up to 24 rounds of this construction, made possible by a memory-efficient search algorithm. Replacing existing generators with Randen can protect randomized algorithms such as reservoir sampling from attack. The permutation may also be useful for wide-block ciphers and hashing functions.
Motivation & Objective
- To design a pseudorandom number generator that is both computationally indistinguishable from random and backtracking-resistant, even in non-cryptographic contexts.
- To address the performance bottleneck of cryptographically secure generators in general-purpose applications by leveraging hardware-accelerated AES.
- To provide a secure alternative to widely used but insecure generators like Mersenne Twister and PCG, which lack formal security guarantees.
- To demonstrate that a high-security PRNG can be faster than existing non-cryptographic generators through optimized permutation design and hardware utilization.
- To enable safer deployment of randomized algorithms—such as reservoir sampling—by preventing adversaries from predicting or reconstructing past outputs.
Proposed method
- Randen is an instantiation of the Reverie sponge-like random generator, using a new 16-branch generalized Feistel permutation for efficient state mixing.
- The permutation is constructed using AES-based round functions and optimized for low-latency, high-throughput execution on modern CPUs with AES-NI support.
- A memory-efficient search algorithm is used to derive new bounds on active S-boxes for up to 24 rounds, ensuring strong diffusion properties.
- The generator achieves backtracking resistance by design, preventing reconstruction of past outputs even if the current state is compromised.
- Hardware acceleration via AES-NI enables performance that surpasses software-only generators like ChaCha8 and Philox, despite stronger security guarantees.
- The generator is deterministic and reseeding-free, supporting reproducibility and debugging while maintaining forward secrecy.
Experimental results
Research questions
- RQ1Can a pseudorandom number generator achieve both computational indistinguishability from random and backtracking resistance without sacrificing performance?
- RQ2Is it feasible to build a cryptographically strong PRNG that is faster than existing non-cryptographic generators like Mersenne Twister and PCG?
- RQ3How can a sponge-like construction (Reverie) be efficiently instantiated with a Feistel-based permutation to achieve high throughput and strong security?
- RQ4What are the tightest bounds on active S-boxes in a 16-branch generalized Feistel structure over 24 rounds, and how do they impact security?
- RQ5Can hardware-accelerated AES be leveraged to build a PRNG that is both secure and practical for general-purpose use in production systems?
Key findings
- Randen is 1.1 to 1.4 times faster than Mersenne Twister on both x86 and POWER8 platforms, with geometric mean speedup factors of 1.1 on x86 and 1.1 on PPC.
- Randen outperforms PCG on POWER8 (1.1x speedup) and is 1.2x faster on x86 in Monte Carlo simulations, despite PCG being faster in a microbenchmark.
- Randen is 2.3 times faster than Philox on x86 and 3.4 times faster on POWER8, and 2.0 times faster than ISAAC on x86 and 2.5 times on POWER8.
- Randen is 2.1 times faster than ChaCha8 on x86 and 7.8 times faster than ChaCha20, with a 9.3x speedup over CTR-DRBG on x86.
- The new 16-branch Feistel permutation with AES-based rounds achieves strong diffusion, with new active S-box bounds derived via a memory-efficient search algorithm for up to 24 rounds.
- Randen is the first software PRNG shown to be both backtracking-resistant and faster than Mersenne Twister in real-world workloads, making it a viable replacement for insecure generators in non-cryptographic applications.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.