Skip to content

Commit 4494700

Browse files
committed
win fix
1 parent 53b3b19 commit 4494700

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/windows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ extern "system" {
2121
) -> u32;
2222
}
2323

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

0 commit comments

Comments
 (0)