This commit is contained in:
Nicholas Ward 2022-08-23 15:22:48 -07:00
parent fee0963eca
commit f3e48dcbfa

View File

@ -18,7 +18,11 @@ fn test_sha2() -> Result<()> {
let mut rng = thread_rng();
let num_bytes = rng.gen_range(1..10000);
let message: String = rng.sample_iter(&Alphanumeric).take(num_bytes).map(char::from).collect();
let message: String = rng
.sample_iter(&Alphanumeric)
.take(num_bytes)
.map(char::from)
.collect();
dbg!(num_bytes);
let mut hasher = Sha256::new();