| 117 | } |
| 118 | |
| 119 | fn key_file(home: &Path) -> PathBuf { |
| 120 | let mut secret = [0u8; 32]; |
| 121 | for (index, byte) in secret.iter_mut().enumerate() { |
| 122 | *byte = 0x42u8.wrapping_add((index as u8).wrapping_mul(13).wrapping_add(7)); |
| 123 | } |
| 124 | let hex: String = secret.iter().map(|byte| format!("{byte:02x}")).collect(); |
| 125 | let path = home.join("bench-binding.key"); |
| 126 | fs::write(&path, hex).expect("write binding key"); |
| 127 | path |
| 128 | } |
| 129 | |
| 130 | /// Print the documented-environment block the matrix records. |
| 131 | fn print_environment(corpus_root: &Path) { |