Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sys_rand syscall: align with the decalre in rust/zkvm #220

Open
qethu opened this issue Jan 26, 2025 · 0 comments
Open

sys_rand syscall: align with the decalre in rust/zkvm #220

qethu opened this issue Jan 26, 2025 · 0 comments

Comments

@qethu
Copy link
Contributor

qethu commented Jan 26, 2025

In rust, the sys_rand syscall is declared as

pub fn sys_rand(recv_buf: *mut u32, words: usize);

in std/src/sys/pal/zkvm/abi.rs

While in our runtime, it is implemented as

pub unsafe extern "C" fn sys_rand(recv_buf: *mut u8, words: usize)

in runtime/entrypoint/src/syscalls/sys.rs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant