Parallel random numbers: as easy as 1, 2, 3
The DOI matches its Crossref record; 45 of the 46 references it cites were found in a registry or an index.
Abstract
Most pseudorandom number generators (PRNGs) scale poorly to massively parallel high-performance computation because they are designed as sequentially dependent state transformations. We demonstrate that independent, keyed transformations of counters produce a large alternative class of PRNGs with excellent statistical properties (long period, no discernable structure or correlation). These counter-based PRNGs are ideally suited to modern multi-core CPUs, GPUs, clusters, and special-purpose hardware because they vectorize and parallelize well, and require little or no memory for state. We introduce several counter-based PRNGs: some based on cryptographic standards (AES, Threefish) and some completely new (Philox). All our PRNGs pass rigorous statistical tests (including TestU01's BigCrush) and produce at least 264 unique parallel streams of random numbers, each with period 2128 or more. In addition to essentially unlimited parallel scalability, our PRNGs offer excellent single-chip performance: Philox is faster than the CURAND library on a single NVIDIA GPU.
Overview
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“This is somewhat surprising given that only 10 rounds are recommended for the original Philox cipher in the PRNG setting [56].”
From Bandwidth-Optimal Random Shuffling for GPUs (2022) · cites this paper as [56]
In the citing paper
“The Philox and Threefry generators are shown to produce at least 2 64 independent streams of random numbers, with a period of 2 128 or more, and pass BigCrush [36] statistical tests.”
From Bandwidth-Optimal Random Shuffling for GPUs (2022) · cites this paper as [56]
Citations
Cites
The Art of Computer Programming
Knuth, D. E. (1968) · Cited by 16,320
Press, W. H., Teukolsky, S. A., Vetterling, W. T., & Flannery, B. P. (1994) · Cited by 15,411
Communication Theory of Secrecy Systems
Shannon, C. E. (1949) · Bell System Technical Journal · doi:10.1002/j.1538-7305.1949.tb00928.x · Cited by 9,440 · cited 1×
“The property of producing highly random output from highly regular input is known as “diffusion” in the cryptographic literature, and is considered an essential property of any cryptographic cipher [39].”
The Art of Computer Programming
Whitesides, G. E. (1970) · Nuclear Science and Engineering · doi:10.13182/nse70-a19705 · Cited by 6,008
Mersenne twister: a 623-dimensionally equidistributed uniform pseudo-random number generator
Matsumoto, M., & Nishimura, T. (1998) · ACM Transactions on Modeling and Computer Simulation · doi:10.1145/272991.272995 · Cited by 5,780
The Art of Computer Programming. Volume 2: Seminumerical Algorithms.
Taussky, O., & Knuth, D. E. (1970) · The American Mathematical Monthly · doi:10.2307/2317055 · Cited by 3,822
Bassham, L. E., Rukhin, A. L., Soto, J., Nechvatal, J. R., Smid, M. E., Barker, E. B., Leigh, S. D., Levenson, M., Vangel, M., Banks, D. L., et al. (2010) · NIST Special Publication 800-22 Revision 1a · doi:10.6028/nist.sp.800-22r1a · Cited by 3,617 · cited 1×
“[4, 20, 26, 38], but the most comprehensive is TestU01 [24], which provides a consistent framework as well as batteries”
Atomic-level characterization of the structural dynamics of proteins
Shaw, D. E., Maragakis, P., Lindorff-Larsen, K., Piana, S., Dror, R. O., Eastwood, M. P., Bank, J. A., Jumper, J. M., Salmon, J. K., Shan, Y., et al. (2010) · Science · doi:10.1126/science.1187409 · Cited by 1,923
Self-citationRukhin, A., Sota, J., Nechvatal, J., Smid, M., Barker, E., Leigh, S., Levenson, M., Vangel, M., Banks, D., Heckert, A., et al. (2000) · doi:10.6028/nist.sp.800-22 · Cited by 1,867
Kalos, M. H., & Whitlock, P. A. (1986) · Wiley eBooks · doi:10.1002/9783527617395 · Cited by 1,546
Random number generators: good ones are hard to find
Park, S. K., & Miller, K. W. (1988) · Communications of the ACM · doi:10.1145/63039.63042 · Cited by 1,262
Solving Problems on Concurrent Processors
Fox, G. (1988) · Cited by 1,199
TestU01: A C library for empirical testing of random number generators
L'Ecuyer, P., & Simard, R. (2007) · ACM Transactions on Mathematical Software · doi:10.1145/1268776.1268777 · Cited by 1,014 · cited 4×
“In fact, the examples in the literature of counter-based PRNGs all use cryptographic block ciphers or cryptographic hashes [17, 24, 37, 45, 48].”
InfluentialCryptography and Computer Privacy
Feistel, H. (1973) · Scientific American · doi:10.1038/scientificamerican0573-15 · Cited by 777
Recommendation for block cipher modes of operation: methods and techniques
Dworkin, M. J. (2001) · doi:10.6028/nist.sp.800-38a · Cited by 746
Advanced Encryption Standard (AES)
National Institute of Standards and Technology (US) (2001) · doi:10.6028/nist.fips.197 · Cited by 642
Mathematical Methods in Large-scale Computing Units
Lehmer, D. H. (1951) · Cited by 455
Monte Carlo simulations: Hidden errors from ‘‘good’’ random number generators
Ferrenberg, A. M., Landau, D. P., & Wong, Y. J. (1992) · Physical Review Letters · doi:10.1103/physrevlett.69.3382 · Cited by 437
Marsaglia, G. (2003) · Journal of Statistical Software · doi:10.18637/jss.v008.i14 · Cited by 434
Millisecond-scale molecular dynamics simulations on Anton
Shaw, D. E., Dror, R. O., Salmon, J. K., Grossman, J. P., Mackenzie, K. M., Bank, J. A., Young, C., Deneroff, M. M., Batson, B., Bowers, K. J., et al. (2009) · Proceedings of the Conference on High Performance Computing Networking, Storage and Analysis · doi:10.1145/1654059.1654099 · Cited by 382 · cited 1×
“We originally used this approach in biomolecular simulations on Anton [40, 41], a massively parallel special-purpose machine, but the approach is far more general.”
Self-citationDIEHARD : A battery of tests of randomness
Marsaglia, G. (1996) · Medical Entomology and Zoology · Cited by 341
Improved long-period generators based on linear recurrences modulo 2
Panneton, F., L'Ecuyer, P., & Matsumoto, M. (2006) · ACM Transactions on Mathematical Software · doi:10.1145/1132973.1132974 · Cited by 283
The Skein Hash Function Family
Lucks, S., & Callas⋆, J. (2009) · Cited by 276
Algorithm 806: SPRNG: a scalable library for pseudorandom number generation
Mascagni, M., & Srinivasan, A. (2000) · ACM Transactions on Mathematical Software · doi:10.1145/358407.358427 · Cited by 275
Sindhikara, D. J., Kim, S., Voter, A. F., & Roitberg, A. E. (2009) · Journal of Chemical Theory and Computation · doi:10.1021/ct800573m · Cited by 227
Handbook of Computational Statistics
(2005) · Technometrics · doi:10.1198/tech.2005.s314 · Cited by 225
(2008) · The Concise Encyclopedia of Statistics · doi:10.1007/978-0-387-32833-1_341 · Cited by 206
Good random number generators are (not so) easy to find
Hellekalek, P. (1998) · Mathematics and Computers in Simulation · doi:10.1016/s0378-4754(98)00078-0 · Cited by 178
Combined Multiple Recursive Random Number Generators
L'Ecuyer, P. (1996) · Operations Research · doi:10.1287/opre.44.5.816 · Cited by 157
Solving Problems On Concurrent Processors Vol. 1: General Techniques and Regular Problems
Fox, G., Johnson, M., Lyzenga, G. A., Otto, S. W., Salmon, J. K., WALKER, D. W., & White, R. L. (1989) · Computers in Physics · doi:10.1063/1.4822815 · Cited by 151
Self-citationMckinney, E. H. (1966) · American Mathematical Monthly · doi:10.2307/2315408 · Cited by 125
A search for good multiple recursive random number generators
L'Ecuyer, P., Blouin, F., & Couture, R. (1993) · ACM Transactions on Modeling and Computer Simulation · doi:10.1145/169702.169698 · Cited by 122
Random Number Generators for Parallel Computers
Coddington, P. (1997) · Syracuse University Libraries (Syracuse University) · Cited by 114
New AES Software Speed Records
Bernstein, D. J., & Schwabe, P. (2008) · Lecture notes in computer science · doi:10.1007/978-3-540-89754-5_25 · Cited by 105
A Vulnerability in Popular Molecular Dynamics Packages Concerning Langevin and Andersen Dynamics
Cerutti, D. S., Duke, R. E., Freddolino, L., Fan, H., & Lybrand, T. P. (2008) · Journal of Chemical Theory and Computation · doi:10.1021/ct8002173 · Cited by 87
Parallelization of random number generators and long-range correlations
Matteis, A. D., & Pagnutti, S. (1988) · Numerische Mathematik · doi:10.1007/bf01397554 · Cited by 81
LUCIFER, A CRYPTOGRAPHIC ALGORITHM
Sorkin, A. (1984) · Cryptologia · doi:10.1080/0161-118491858746 · Cited by 79
Empirical evidence concerning AES
Hellekalek, P., & Wegenkittl, S. (2003) · ACM Transactions on Modeling and Computer Simulation · doi:10.1145/945511.945515 · Cited by 76
Parallel white noise generation on a GPU via cryptographic hash
Tzeng, S., & Wei, L. (2008) · ACM SIGGRAPH Symposium on Interactive 3D Graphics and Games (I3D) · doi:10.1145/1342250.1342263 · Cited by 76
Some long-period random number generators using shifts and xors
Brent, R. P. (2007) · ANZIAM Journal · doi:10.21914/anziamj.v48i0.40 · Cited by 63
Don't trust parallel Monte Carlo!
Hellekalek, P. (1998) · ACM/IEEE/SCS Workshop on Principles of Advanced and Distributed Simulation (PADS) · doi:10.1145/278008.278019 · Cited by 52
Long-range correlations in linear and non-linear random number generators
Matteis, A. D., & Pagnutti, S. (1990) · Parallel Computing · doi:10.1016/0167-8191(90)90108-l · Cited by 49
Common defects in initialization of pseudorandom number generators
Matsumoto, M., Wada, I., Kuramoto, A., & Ashihara, H. (2007) · ACM Transactions on Modeling and Computer Simulation · doi:10.1145/1276927.1276928 · Cited by 37
(2010) · doi:10.5555/1921479.1921500 · Cited by 27
Kalos, M. H., & Whitlock, P. A. (2008) · doi:10.1002/9783527626212
Research works printed but not linked: 3
- S. Gueron . Intel Advanced Encryption Standard (AES) instructions set. Technical report , Intel , 2010 . S. Gueron. Intel Advanced Encryption Standard (AES) instructions set. Technical report, Intel, 2010.
- National Bureau of Standards. Data Encryption Standard. FIPS PUB 46--3 , 1977 . National Bureau of Standards. Data Encryption Standard. FIPS PUB 46--3, 1977.
- J. von Neuman . Various techniques used in connection with random digits. In A. Householder, G. Forsythe, and H. Germond, editors, Monte Carlo Method , Applied Math Series , Volume 11 , pages 36 -- 38 . National Bureau of Standards , 1951 . J. von Neuman. Various techniques used in connection with random digits. In A. Householder, G. Forsythe, and H. Germond, editors, Monte Carlo Method, Applied Math Series, Volume 11, pages 36--38. National Bureau of Standards, 1951.
Cited by
Harris, C., Millman, K., van der Walt, S., Gommers, R., Virtanen, P., Cournapeau, D., Wieser, E., Taylor, J., Berg, S., Smith, N., et al. (2020) · RePEc: Research Papers in Economics · Cited by 17,844
Advances and Open Problems in Federated Learning
Kairouz, P., McMahan, H. B., Avent, B., Bellet, A., Bennis, M., Bhagoji, A. N., Bonawitz, K., Charles, Z., Cormode, G., Cummings, R., et al. (2019) · arXiv · doi:10.48550/arxiv.1912.04977 · Cited by 7,857
Advances and Open Problems in Federated Learning
Kairouz, P., & McMahan, H. B. (2021) · Foundations and Trends in Machine Learning · doi:10.1561/2200000083 · Cited by 7,772
“Robust and efficient PRNGs based on standard cryptographic primitives exist that have output rate of gigabytes per second on modern CPUs and require a seed as short as 128 bits [343].”
BackgroundBackground Subtraction with DirichletProcess Mixture Models
Haines, T. S. F., & Xiang, T. (2014) · IEEE Transactions on Pattern Analysis and Machine Intelligence · doi:10.1109/tpami.2013.239 · Cited by 211
“Update the model using Gibbs sampling—random number generation is handled via the Philox algorithm [39].”
MethodMedical imaging deep learning with differential privacy
Ziller, A., Usynin, D., Braren, R., Makowski, M., Rueckert, D., & Kaissis, G. (2021) · Scientific Reports · doi:10.1038/s41598-021-93030-0 · Cited by 172
“The system is supplemented by a cryptographically secure random number generator 35 suitable for use on the graphics processing unit and capable of parallelising the random noise generation step of the DP-SGD algorithm.”
Method
Metadata
- Authors
- Salmon, J. K., Moraes, M. A., Dror, R. O., & Shaw, D. E.
- Affiliations
- D. E. Shaw Research (US)
- Venue
- Proceedings of 2011 International Conference for High Performance Computing, Networking, Storage and Analysis
- Publisher
- ACM
- Published
- 2011-11-12
- Pages
- 1-12
- ISSN
- 2167-4337 (ISSN-L)
- OpenAlex
- W2075075402
- Semantic Scholar
- 7a1bc9d13c484610133ee50ac3126f5adc5b29b9
- Cited by
- 227
- References
- 46
- Citations by year
- 2026: 13 · 2025: 11 · 2024: 15 · 2023: 11 · 2022: 17 · 2021: 25 · 2020: 19 · 2019: 10 · 2018: 13 · 2017: 16 · 2016: 11 · 2015: 22 · 2014: 26 · 2013: 9 · 2012: 9
- FWCI
- 37.93
- Type
- conference paper
- Language
- en
- Open access
- closed
- Locations
- International Conference for High Performance Computing, Networking, Storage and Analysis (SC) (publishedVersion)
- Topics
- Physical Sciences › Mathematics › Numerical Analysis › Mathematical Approximation and Integration
- Physical Sciences › Computer Science › Hardware and Architecture › Parallel Computing and Optimization Techniques
- Physical Sciences › Computer Science › Artificial Intelligence › Cryptographic Implementations and Security
- Keywords
- pseudorandom number generators, parallel random number generation, vectorization, multi-core processors, parallel streams, randomness testing
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.