19 lines
447 B
C++
19 lines
447 B
C++
|
|
#include "util.hh"
|
|
|
|
namespace uvg_rtp {
|
|
namespace random {
|
|
|
|
/* Initialize the PSRNG of standard lib and for windows
|
|
* acquire the cryptographic context
|
|
*
|
|
* Return RTP_OK on success
|
|
* Return RTP_GENERIC_ERROR if acquiring the the crypt context fails */
|
|
rtp_error_t init();
|
|
|
|
int generate(void *buf, size_t n);
|
|
uint32_t generate_32();
|
|
uint64_t generate_64();
|
|
};
|
|
};
|