mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
10 lines
No EOL
219 B
C++
10 lines
No EOL
219 B
C++
#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;
|
|
} |