mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-10-08 18:41:30 -04:00
Fix crypto erase example
This commit is contained in:
1 parent
3f4d18fd9c
commit
108aa04899
1 file changed
+1
-1
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user