[PATCH] D44866: GetRandom / OpenBSD, using getentropy to get high quality randomness

Kostya Kortchinsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 30 08:54:44 PDT 2018


cryptoad added a comment.

Random thought: I am unsure about the OpenBSD version, but the Linux version is blocking.
When using blocking getrandom on Linux, it became an issue if used in a process like init where it would stall the whole system.
It's probably not a problem if used on specific binaries later in the lifespan of the system, but I figured you might want to take that into consideration in case the former case applies to you.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D44866





More information about the llvm-commits mailing list