mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2025-12-11 20:15:30 +01:00
Fix crypto erase example
This commit is contained in:
parent
3f4d18fd9c
commit
108aa04899
@ -6,7 +6,7 @@ use tempfile::tempfile;
|
||||
|
||||
fn main() {
|
||||
let mut file = tempfile().unwrap();
|
||||
let mut rng = CryptoRng::new();
|
||||
let mut rng = CryptoRng::new().unwrap();
|
||||
let data = rng.generate_vec(1048576 * 16);
|
||||
file.write_all(&data).unwrap();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user