Random Number Generator (llvm)
Provides an abstraction for a random number generator (RNG) that produces a stream of pseudo-random numbers.
The current implementation uses C++11 facilities and is therefore not cryptographically secure.
The RNG is salted with the text of the current command line invocation.
In addition, a user may specify a seed (reproducible builds).
In clang, the seed can be set via
In the back end, the seed can be set via
This is the llvm part of the patch.
clang part: D3391
I'm landing this for the second time, it broke Windows bots the first time around.