(content: &[u8], path: &Path)
| 38 | } |
| 39 | |
| 40 | pub fn write_to_file(content: &[u8], path: &Path) -> Result<(), Box<dyn std::error::Error>> { |
| 41 | let mut file = File::create(path)?; |
| 42 | file.write_all(content)?; |
| 43 | |
| 44 | Ok(()) |
| 45 | } |
| 46 | |
| 47 | pub fn random_u8() -> u8 { |
| 48 | rand::random() |
no outgoing calls