libfilezilla
Namespaces | Functions
util.hpp File Reference

Various utility functions. More...

#include "libfilezilla.hpp"
#include "time.hpp"
#include <cstdint>
Include dependency graph for util.hpp:

Go to the source code of this file.

Namespaces

 fz
 The namespace used by libfilezilla.
 

Functions

void sleep (duration const &d)
 Sleep current thread for the specified duration. More...
 
int64_t random_number (int64_t min, int64_t max)
 Get a secure random integer uniformly distributed in the closed interval [min, max].
 
std::vector< uint8_t > random_bytes (size_t size)
 Get random uniformly distributed bytes.
 

Detailed Description

Various utility functions.