News for hackers. Stuff that matters.
Re:Make Your Program Slower with Threads by owlbite on Thursday June 06, 2024 @09:24PM (#40604399)
Algorithms for producing the same stream of random numbers in serial or parallel have been well known for many years. Perhaps the easiest in concept is "encrypt the sequence 1, 2, 3, 4, 5, ...".
Re:Make Your Program Slower with Threads by pclmulqdq on Thursday June 06, 2024 @09:26PM (#40604418)
The author of the blog wanted each thread to have different random numbers, not the same stream of numbers.