ruiu suggested doing this here:
https://reviews.llvm.org/D23349
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
A couple of comments on the Unix bits. I'm not familiar with the Windows bits, one between Michael and rnk should sign-off that part before it goes in.
lib/Support/RandomNumberGenerator.cpp | ||
---|---|---|
79 ↗ | (On Diff #68546) | POSIX read() could return less bytes than you requested, or just failing, and you might want to handle that case. |
80 ↗ | (On Diff #68546) | Also, close() can fail (so you might want to check errno in that case and propagate that back to the caller instead of swallowing it). |