mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-05-02 12:24:03 -04:00
Fix crypto erase example
This commit is contained in:
@@ -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