Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
random.cpp File Reference
#include <pthread.h>
#include <time.h>
#include <stdlib.h>
#include "random.h"
+ Include dependency graph for random.cpp:

Classes

class  _random_system

Functions

int posrandom ()
 return strong random number
int possimplerandom ()
 return simple random number

Variables

class _random_system __random_system
int possr_prev = 0
char randomstate [256]

Function Documentation

int posrandom ( )

return strong random number

This function returns a strongly random number that should be unpredictable.

int possimplerandom ( )

return simple random number

This function returns a simple random number, and therefore, it is much faster than posrandom().

Variable Documentation

class _random_system __random_system
int possr_prev = 0
char randomstate[256]