diff options
Diffstat (limited to 'src/rt/rust_util.h')
| -rw-r--r-- | src/rt/rust_util.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/rt/rust_util.h b/src/rt/rust_util.h index 2c4eb8cd174..0af16978390 100644 --- a/src/rt/rust_util.h +++ b/src/rt/rust_util.h @@ -61,11 +61,10 @@ isaac_init(rust_kernel *kernel, randctx *rctx) CryptReleaseContext(hProv, 0)); #else int fd = open("/dev/urandom", O_RDONLY); - I(kernel, fd > 0); - I(kernel, - read(fd, (void*) &rctx->randrsl, sizeof(rctx->randrsl)) - == sizeof(rctx->randrsl)); - I(kernel, close(fd) == 0); + assert(fd > 0); + assert(read(fd, (void*) &rctx->randrsl, sizeof(rctx->randrsl)) + == sizeof(rctx->randrsl)); + assert(close(fd) == 0); #endif } |
