mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-09 10:43:19 -05:00
10 lines
219 B
C++
10 lines
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;
|
||
|
}
|