[compiler-rt] r335755 - [sanitizer] zx_cprng_draw no longer takes the output argument
Petr Hosek via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 27 09:49:37 PDT 2018
Author: phosek
Date: Wed Jun 27 09:49:37 2018
New Revision: 335755
URL: http://llvm.org/viewvc/llvm-project?rev=335755&view=rev
Log:
[sanitizer] zx_cprng_draw no longer takes the output argument
The zx_cprng_draw system call no longer takes the output argument.
Differential Revision: https://reviews.llvm.org/D48657
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_fuchsia.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_fuchsia.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_fuchsia.cc?rev=335755&r1=335754&r2=335755&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_fuchsia.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_fuchsia.cc Wed Jun 27 09:49:37 2018
@@ -472,9 +472,7 @@ uptr MainThreadStackBase, MainThreadStac
bool GetRandom(void *buffer, uptr length, bool blocking) {
CHECK_LE(length, ZX_CPRNG_DRAW_MAX_LEN);
- size_t size;
- CHECK_EQ(_zx_cprng_draw(buffer, length, &size), ZX_OK);
- CHECK_EQ(size, length);
+ CHECK_EQ(_zx_cprng_draw(buffer, length), ZX_OK);
return true;
}
More information about the llvm-commits
mailing list