mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-20 04:06:30 +00:00
compilation error fix
This commit is contained in:
@ -39,7 +39,7 @@ pub fn ___syscall5(ctx: &mut Ctx, which: c_int, mut varargs: VarArgs) -> c_int {
|
||||
let mut urandom_file = File::create(tmp_dir).unwrap();
|
||||
// create some random bytes and put them into the file
|
||||
let mut random_bytes = [0u8; 32];
|
||||
getrandom::getrandom(random_bytes).unwrap();
|
||||
getrandom::getrandom(&mut random_bytes).unwrap();
|
||||
let _ = urandom_file.write_all(&random_bytes).unwrap();
|
||||
// put the file path string into wasm memory
|
||||
let urandom_file_offset = unsafe { copy_cstr_into_wasm(ctx, ptr) };
|
||||
|
Reference in New Issue
Block a user