Skip to content

Commit

Permalink
[sanitizer] zx_cprng_draw no longer takes the output argument
Browse files Browse the repository at this point in the history
The zx_cprng_draw system call no longer takes the output argument.

Differential Revision: https://reviews.llvm.org/D48657

llvm-svn: 335755
  • Loading branch information
petrhosek committed Jun 27, 2018
1 parent 812fcb3 commit 3209b28
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3209b28

Please sign in to comment.