blob: 9839d2f6246e57903af41c816fdf8926acbb6747 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#include <random.h>
#include <fs.h>
#include <util/strencodings.h>
fs::path GetUniquePath(const fs::path& base)
{
FastRandomContext rnd;
fs::path tmpFile = base / HexStr(rnd.randbytes(8));
return tmpFile;
}
|