diff options
author | Petr Hosek <phosek@chromium.org> | 2018-06-27 16:49:37 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2018-06-27 16:49:37 +0000 |
commit | 1523dfc20a7df45eae863bbe79a3cf768e26fd2f (patch) | |
tree | 53edc1696bf013cfe2fd04ffa0798bb35ad280f2 /lib | |
parent | fa7d242979c1f7e583913ae81b763c807690136f (diff) |
[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
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@335755 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sanitizer_common/sanitizer_fuchsia.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/sanitizer_common/sanitizer_fuchsia.cc b/lib/sanitizer_common/sanitizer_fuchsia.cc index fa5c82a24..a38136978 100644 --- a/lib/sanitizer_common/sanitizer_fuchsia.cc +++ b/lib/sanitizer_common/sanitizer_fuchsia.cc @@ -472,9 +472,7 @@ uptr MainThreadStackBase, MainThreadStackSize; 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; } |