From e0b6b7f2dedf42ddb396eeaab230dbbb0abc17e0 Mon Sep 17 00:00:00 2001 From: Alexandr Kitaev Date: Sun, 19 May 2024 16:14:11 +0300 Subject: [PATCH] fix belt-dwp tests --- belt-dwp/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/belt-dwp/src/lib.rs b/belt-dwp/src/lib.rs index 8b77cb22..665d05c1 100644 --- a/belt-dwp/src/lib.rs +++ b/belt-dwp/src/lib.rs @@ -58,7 +58,7 @@ //! BeltDwp, Nonce //! }; //! -//! let key = BeltDwp::generate_key()?; +//! let key = BeltDwp::generate_key(&mut OsRng)?; //! let cipher = BeltDwp::new(&key); //! let nonce = Nonce::from_slice(b"unique nonce1234"); // 128-bits; unique per message //!