[PATCH] D34412: [sanitizer] Add a function to gather random bytes

Zachary Turner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 20 11:48:30 PDT 2017


zturner added subscribers: rnk, zturner.
zturner added a comment.

Assuming sanitizer windows doesn't mind to take a dependency on `advapi32.dll` (maybe it already has one?) this can be implemented pretty trivially using `CryptGenRandom` or `RtlGenRandom` (latter is easier to use).

In any case, shouldn't the unimplemented versions at least do *something*, even if they are not cryptographically strong?


https://reviews.llvm.org/D34412





More information about the llvm-commits mailing list