/usr/include/libfilezilla/util.hpp is in libfilezilla-dev 0.11.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | #ifndef LIBFILEZILLA_UTIL_HEADER
#define LIBFILEZILLA_UTIL_HEADER
#include "libfilezilla.hpp"
#include "time.hpp"
#include <cstdint>
/** \file
* \brief Various utility functions
*/
namespace fz {
/** \brief Sleep current thread for the specified \ref duration.
*
* Alternative to \c std::this_thread::sleep_for which unfortunately isn't implemented on
* MinGW.
*
* \note May wake up early, e.g. due to a signal. You can use \ref monotonic_clock
* to check elapsed time and sleep again if needed.
*/
void FZ_PUBLIC_SYMBOL sleep(duration const& d);
/** \brief Get a secure random integer uniformly distributed in the closed interval [min, max]
*/
int64_t FZ_PUBLIC_SYMBOL random_number(int64_t min, int64_t max);
/** \brief Get random uniformly distributed bytes
*/
std::vector<uint8_t> FZ_PUBLIC_SYMBOL random_bytes(size_t size);
}
#endif
|