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

David CARLIER via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 30 12:43:08 PDT 2018


devnexen added a comment.

In https://reviews.llvm.org/D44866#1053037, @cryptoad wrote:

> 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.


It is seeded at boot time, thus getentropy (in OpenBSD) is non blocking.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D44866





More information about the llvm-commits mailing list