27#include "ws_symbol_export.h"
struct _sober128_prng sober128_prng
Internal state structure for the Sober128 pseudorandom number generator.
WS_DLL_PUBLIC int sober128_start(sober128_prng *prng)
Initialize a Sober128 PRNG instance.
Definition sober128.c:270
WS_DLL_PUBLIC unsigned long sober128_read(unsigned char *buf, unsigned long len, sober128_prng *prng)
Generate random bytes from a Sober128 PRNG instance.
Definition sober128.c:413
WS_DLL_PUBLIC int sober128_add_entropy(const unsigned char *buf, unsigned long len, sober128_prng *prng)
Inject entropy into a Sober128 PRNG instance.
Definition sober128.c:356
Internal state structure for the Sober128 pseudorandom number generator.
Definition sober128.h:36
unsigned long initR[17]
Definition sober128.h:38
int nbuf
Definition sober128.h:42
int flag
Definition sober128.h:43
unsigned long R[17]
Definition sober128.h:37
unsigned long konst
Definition sober128.h:39
int set
Definition sober128.h:44
unsigned long sbuf
Definition sober128.h:40