You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IIUC error codes are defined as positive i32, so they can not be bigger than i32::MAX.
It would be nice if it was a written guarantee that negative values returned by syscalls are always strictly bigger than i32::MIN. See rust-random/getrandom#377
The text was updated successfully, but these errors were encountered:
newpavlov
changed the title
Is it guaranteed that error codes are always stritctly smaller than i32::MIN?
Is it guaranteed that return error values are always stritctly smaller than i32::MIN?
Oct 16, 2023
newpavlov
changed the title
Is it guaranteed that return error values are always stritctly smaller than i32::MIN?
Is it guaranteed that return error values are always stritctly bigger than i32::MIN?
Oct 16, 2023
Hmmm, sure. Guaranteeing that would be nice in general.
For read_entropy specifically, I'd say that the current doc comments are sufficient, as you already mentioned here: rust-random/getrandom#377 (comment)
IIUC error codes are defined as positive
i32
, so they can not be bigger thani32::MAX
.It would be nice if it was a written guarantee that negative values returned by syscalls are always strictly bigger than
i32::MIN
. See rust-random/getrandom#377The text was updated successfully, but these errors were encountered: