[PATCH] D77553: [Support,Windows] Tolerate failure of CryptGenRandom
Hans Wennborg via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 6 10:18:47 PDT 2020
hans accepted this revision.
hans added a comment.
This revision is now accepted and ready to land.
Seems reasonable to me.
================
Comment at: llvm/lib/Support/Windows/Process.inc:455
+ // CryptGenRandom) don't bother at all.
+ static int x = (static_cast<void>(::srand(GetRandomNumberSeed())), 0);
+ (void)x;
----------------
Why do you need the static_cast<void>?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77553/new/
https://reviews.llvm.org/D77553
More information about the llvm-commits
mailing list