Fixing clashing naming of temp directories

* using 2 bytes for naming the directories
This commit is contained in:
Ptipiak 2022-12-01 14:35:46 +01:00
parent d991beb942
commit 5ed4122cbe
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ fn create_working_directory(
directories: &[&'static str],
files: &[&'static str],
) -> Result<TempDir, io::Error> {
let temp_dir = tempfile::Builder::new().prefix("fd-tests").tempdir()?;
let temp_dir = tempfile::Builder::new().prefix("fd-tests").rand_bytes(2).tempdir()?;
{
let root = temp_dir.path();