Skip to content

Commit 6b618ae

Browse files
Fix FFI
1 parent f8aa2e3 commit 6b618ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boringtun/src/ffi/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ pub struct x25519_key {
100100
#[no_mangle]
101101
pub extern "C" fn x25519_secret_key() -> x25519_key {
102102
x25519_key {
103-
key: StaticSecret::random_from_rng(OsRng).to_bytes(),
103+
key: StaticSecret::random_from_rng(&mut OsRng.unwrap_mut()).to_bytes(),
104104
}
105105
}
106106

0 commit comments

Comments
 (0)