From e96c391fa08e9c31db62d26845b9d729e9a84217 Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Tue, 14 May 2024 15:42:56 +0200 Subject: [PATCH] actually print p2's bits instead of p1's --- l4/z1/rsa-rs/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l4/z1/rsa-rs/src/main.rs b/l4/z1/rsa-rs/src/main.rs index c5bb781..cd32672 100644 --- a/l4/z1/rsa-rs/src/main.rs +++ b/l4/z1/rsa-rs/src/main.rs @@ -166,7 +166,7 @@ fn main() { println!("p1 ({b} bits): 0x{p1:X}", b = p1.bits()); let p2: BigUint = thread_rng().gen_prime_exact(n, Some(PrimalityTestConfig::strict())); - println!("p2 ({b} bits): 0x{p2:X}", b = p1.bits()); + println!("p2 ({b} bits): 0x{p2:X}", b = p2.bits()); println!();