Skip to content

Commit

Permalink
win fix
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Sep 29, 2022
1 parent 53b3b19 commit 4494700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ extern "system" {
) -> u32;
}

pub unsafe fn getrandom_inner(mut dst: *mut u8, mut len: usize) -> Result<(), Error> {
pub unsafe fn getrandom_inner(dst: *mut u8, len: usize) -> Result<(), Error> {
// Prevent overflow of u32
raw_chunks(dst, len, u32::max_value() as usize, |cdst, clen| {
// BCryptGenRandom was introduced in Windows Vista
Expand Down

0 comments on commit 4494700

Please sign in to comment.