forked from OSchip/llvm-project
[sanitizer] zx_cprng_draw no longer returns any value
Remove the return value check. Differential Revision: https://reviews.llvm.org/D48671 llvm-svn: 335790
This commit is contained in:
parent
ee8010abe3
commit
61574fdb06
|
@ -472,7 +472,7 @@ uptr MainThreadStackBase, MainThreadStackSize;
|
|||
|
||||
bool GetRandom(void *buffer, uptr length, bool blocking) {
|
||||
CHECK_LE(length, ZX_CPRNG_DRAW_MAX_LEN);
|
||||
CHECK_EQ(_zx_cprng_draw(buffer, length), ZX_OK);
|
||||
_zx_cprng_draw(buffer, length);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue