From 449470008aa24ad26fe6448221053acfc4203713 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=9F=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=20=5BArtyom=20Pavlov=5D?= Date: Thu, 29 Sep 2022 04:50:46 +0300 Subject: [PATCH] win fix --- src/windows.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windows.rs b/src/windows.rs index 5cc93c77..ccfc3c27 100644 --- a/src/windows.rs +++ b/src/windows.rs @@ -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