mirror of https://github.com/sharkdp/fd.git
Fixing clashing naming of temp directories
* using 2 bytes for naming the directories
This commit is contained in:
parent
d991beb942
commit
5ed4122cbe
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue