libfilezilla
util.hpp
Go to the documentation of this file.
1 #ifndef LIBFILEZILLA_UTIL_HEADER
2 #define LIBFILEZILLA_UTIL_HEADER
3 
4 #include "libfilezilla.hpp"
5 #include "time.hpp"
6 
7 #include <cstdint>
8 
13 namespace fz {
14 
23 void FZ_PUBLIC_SYMBOL sleep(duration const& d);
24 
27 int64_t FZ_PUBLIC_SYMBOL random_number(int64_t min, int64_t max);
28 
31 std::vector<uint8_t> FZ_PUBLIC_SYMBOL random_bytes(size_t size);
32 
33 }
34 
35 #endif
void sleep(duration const &d)
Sleep current thread for the specified duration.
std::vector< uint8_t > random_bytes(size_t size)
Get random uniformly distributed bytes.
Assorted classes dealing with time.
int64_t random_number(int64_t min, int64_t max)
Get a secure random integer uniformly distributed in the closed interval [min, max].
The namespace used by libfilezilla.
Definition: apply.hpp:16
Sets some global macros and further includes string.hpp.