Skip to content

Commit 39e4730

Browse files
fixup: build issues
1 parent 23676bc commit 39e4730

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

ml-dsa/src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,15 @@ use hybrid_array::{
4949
},
5050
};
5151

52-
use pkcs8::ObjectIdentifier;
53-
use rand_core::CryptoRngCore;
5452
#[cfg(feature = "rand_core")]
55-
use rand_core::{CryptoRng, RngCore};
53+
use rand_core::{CryptoRng, CryptoRngCore, RngCore};
5654

5755
#[cfg(feature = "zeroize")]
5856
use zeroize::{Zeroize, ZeroizeOnDrop};
5957

6058
#[cfg(feature = "pkcs8")]
6159
use pkcs8::{
62-
AlgorithmIdentifierRef, PrivateKeyInfo,
60+
AlgorithmIdentifierRef, ObjectIdentifier, PrivateKeyInfo,
6361
der::{self, AnyRef},
6462
spki::{
6563
self, AlgorithmIdentifier, AssociatedAlgorithmIdentifier, SignatureAlgorithmIdentifier,

slh-dsa/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
//! use slh_dsa::*;
2525
//! use signature::*;
2626
//!
27-
//! let mut rng = rand::rng();
27+
//! let mut rng = rand::rngs::OsRng;
2828
//!
2929
//! // Generate a signing key using the SHAKE128f parameter set
3030
//! let sk = SigningKey::<Shake128f>::new(&mut rng);

0 commit comments

Comments
 (0)