mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-10 10:52:31 -05: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;
|
|
} |