runtime: using CryptGenRandom to generate randomness slows process startup #15589
The recommended way to fix this is to use BCryptGenRandom with a
A slightly faster approach and one that works on XP is to use RtlGenRandom. Although this function is not well-documented, it uses the same RNG as the other functions, it has been recommended by Microsoft in a blog, and it is used in other open source projects such as Chromium and Firefox.
I have a prototype (38633e2) of that uses
If this approach seems worthwhile then I can send out a code review.