fix
This commit is contained in:
parent
daefa58c0c
commit
d11767776e
2
3rd_party/cpp-httplib/httplib.h
vendored
2
3rd_party/cpp-httplib/httplib.h
vendored
@ -5396,7 +5396,7 @@ inline std::string random_string(size_t length) {
|
|||||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||||
"abcdefghijklmnopqrstuvwxyz";
|
"abcdefghijklmnopqrstuvwxyz";
|
||||||
const size_t max_index = (sizeof(charset) - 1);
|
const size_t max_index = (sizeof(charset) - 1);
|
||||||
return charset[static_cast<size_t>(std::rand()) % max_index];
|
return charset[repertory_rand<std::size_t>() % max_index];
|
||||||
};
|
};
|
||||||
std::string str(length, 0);
|
std::string str(length, 0);
|
||||||
std::generate_n(str.begin(), length, randchar);
|
std::generate_n(str.begin(), length, randchar);
|
||||||
|
@ -57,22 +57,22 @@ protected: \
|
|||||||
public: \
|
public: \
|
||||||
virtual ~name() = default
|
virtual ~name() = default
|
||||||
|
|
||||||
constexpr const std::string META_ACCESSED = "accessed";
|
const std::string META_ACCESSED = "accessed";
|
||||||
constexpr const std::string META_ATTRIBUTES = "attributes";
|
const std::string META_ATTRIBUTES = "attributes";
|
||||||
constexpr const std::string META_BACKUP = "backup";
|
const std::string META_BACKUP = "backup";
|
||||||
constexpr const std::string META_CHANGED = "changed";
|
const std::string META_CHANGED = "changed";
|
||||||
constexpr const std::string META_CREATION = "creation";
|
const std::string META_CREATION = "creation";
|
||||||
constexpr const std::string META_DIRECTORY = "directory";
|
const std::string META_DIRECTORY = "directory";
|
||||||
constexpr const std::string META_GID = "gid";
|
const std::string META_GID = "gid";
|
||||||
constexpr const std::string META_KEY = "key";
|
const std::string META_KEY = "key";
|
||||||
constexpr const std::string META_MODE = "mode";
|
const std::string META_MODE = "mode";
|
||||||
constexpr const std::string META_MODIFIED = "modified";
|
const std::string META_MODIFIED = "modified";
|
||||||
constexpr const std::string META_OSXFLAGS = "flags";
|
const std::string META_OSXFLAGS = "flags";
|
||||||
constexpr const std::string META_PINNED = "pinned";
|
const std::string META_PINNED = "pinned";
|
||||||
constexpr const std::string META_SIZE = "size";
|
const std::string META_SIZE = "size";
|
||||||
constexpr const std::string META_SOURCE = "source";
|
const std::string META_SOURCE = "source";
|
||||||
constexpr const std::string META_UID = "uid";
|
const std::string META_UID = "uid";
|
||||||
constexpr const std::string META_WRITTEN = "written";
|
const std::string META_WRITTEN = "written";
|
||||||
|
|
||||||
const std::vector<std::string> META_USED_NAMES = {
|
const std::vector<std::string> META_USED_NAMES = {
|
||||||
META_ACCESSED, META_ATTRIBUTES, META_BACKUP, META_CHANGED,
|
META_ACCESSED, META_ATTRIBUTES, META_BACKUP, META_CHANGED,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user