diff --git a/lib/wasi/src/syscalls/mod.rs b/lib/wasi/src/syscalls/mod.rs index 90128bd34..585469035 100644 --- a/lib/wasi/src/syscalls/mod.rs +++ b/lib/wasi/src/syscalls/mod.rs @@ -2462,7 +2462,7 @@ pub fn random_get(ctx: &mut Ctx, buf: WasmPtr, buf_len: u32) -> __was }; match res { Ok(()) => __WASI_ESUCCESS, - Err(_) => __WASI_ERNGFAILURE, + Err(_) => __WASI_EIO, } } diff --git a/lib/wasi/src/syscalls/types.rs b/lib/wasi/src/syscalls/types.rs index 26d9be448..d2aaa0554 100644 --- a/lib/wasi/src/syscalls/types.rs +++ b/lib/wasi/src/syscalls/types.rs @@ -147,7 +147,6 @@ pub const __WASI_ETIMEDOUT: u16 = 73; pub const __WASI_ETXTBSY: u16 = 74; pub const __WASI_EXDEV: u16 = 75; pub const __WASI_ENOTCAPABLE: u16 = 76; -pub const __WASI_ERNGFAILURE: u16 = 77; #[derive(Debug, Copy, Clone, PartialEq, Eq)] #[repr(C)]