Initial Vexta Core v0.1.0 release
This commit is contained in:
commit
25c454329d
2481 changed files with 689289 additions and 0 deletions
19
src/util/getuniquepath.h
Normal file
19
src/util/getuniquepath.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
// Copyright (c) 2021 The DigiByte Core developers
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#ifndef DIGIBYTE_UTIL_GETUNIQUEPATH_H
|
||||
#define DIGIBYTE_UTIL_GETUNIQUEPATH_H
|
||||
|
||||
#include <fs.h>
|
||||
|
||||
/**
|
||||
* Helper function for getting a unique path
|
||||
*
|
||||
* @param[in] base Base path
|
||||
* @returns base joined with a random 8-character long string.
|
||||
* @post Returned path is unique with high probability.
|
||||
*/
|
||||
fs::path GetUniquePath(const fs::path& base);
|
||||
|
||||
#endif // DIGIBYTE_UTIL_GETUNIQUEPATH_H
|
||||
Loading…
Reference in a new issue