[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

llvm-svn: 335755
This commit is contained in:
Petr Hosek 2018-06-27 16:49:37 +00:00
parent 812fcb35e7
commit 3209b28aa9
1 changed files with 1 additions and 3 deletions

View File

@ -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;
}