Skip to content

Commit

Permalink
comment fix
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Aug 1, 2019
1 parent dc937a4 commit 6ba85ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/windows_uwp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub fn getrandom_inner(dest: &mut [u8]) -> Result<(), Error> {
// We zeroize the highest bit, so the error code will reside
// inside the range designated for OS codes.
// SAFETY: the second highest bit is always equal to one,
// so it's impossible to get zero value. Unfortunately compiler
// so it's impossible to get zero. Unfortunately compiler
// is not smart enough to figure out it yet.
let code = unsafe {
NonZeroU32::new_unchecked(ret & (u32::MAX >> 1))
Expand Down

0 comments on commit 6ba85ff

Please sign in to comment.