poser
A C framework for POsix SERvices
Loading...
Searching...
No Matches
random.h File Reference

declarations for the PSC_Random class More...

#include <poser/decl.h>
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Enumerations

enum  PSC_RandomFlags {
  PSC_RF_ANY = 0 , PSC_RF_NONBLOCK = (1 << 0) , PSC_RF_WLOGPSEUDO = (1 << 1) , PSC_RF_ELOGPSEUDO = (1 << 2) ,
  PSC_RF_SECURE = (1 << 3)
}
 Flags controlling how random bytes are obtained. More...
 

Detailed Description

declarations for the PSC_Random class

Enumeration Type Documentation

◆ PSC_RandomFlags

Flags controlling how random bytes are obtained.

Enumerator
PSC_RF_ANY 

Allow any method for random data.

PSC_RF_NONBLOCK 

Don't use methods that might block.

PSC_RF_WLOGPSEUDO 

Log a warning when using simple PRNG.

PSC_RF_ELOGPSEUDO 

Log an error when using simple PRNG.

PSC_RF_SECURE 

Never use a simple PRNG.