Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explicitly specify types to arguments of 'libc::syscall' (rust-random#74
) The 'libc::syscall' function uses varargs - as a result, its arguments are completely untyped. THe user must ensure that it is called with the proper types for the targeted syscall - otherwise, the calling convention might cause arguments to be put into the wrong registers. This commit explicitly casts the arguments to 'libc::syscall' to the proper type for the 'getrandom' syscall. This ensures that the correct types for the target platform will always be used, instead of relying on the types used happening to match those required by the target platform.
- Loading branch information