libusual  0.1
Functions
usual/crypto/csrandom.h File Reference

Cryptographically Secure Randomness. More...

Functions

uint32_t csrandom (void)
 Return random uint32_t.
uint32_t csrandom_range (uint32_t upper_bound)
 Return unsigned integer in range.
void csrandom_bytes (void *buf, size_t nbytes)
 Fill buffer with random bytes.

Detailed Description

Cryptographically Secure Randomness.


Function Documentation

uint32_t csrandom ( void  )

Return random uint32_t.

uint32_t csrandom_range ( uint32_t  upper_bound)

Return unsigned integer in range.

void csrandom_bytes ( void *  buf,
size_t  nbytes 
)

Fill buffer with random bytes.