#include <stdio.h>
#include <time.h>
#include "crypt.h"
#include "random/random.h"
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <pwd.h>
#include <sys/errno.h>
#include <sys/ipc.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/shm.h>
#include <signal.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/un.h>
#include <sys/wait.h>
Go to the source code of this file.
#define DEVRANDOM_BYTES 128 |
#define ENSURES_EXIT |
( |
|
x | ) |
if( !( x ) ) { assert( INTERNAL_ERROR ); exit( -1 ); } |
#define lockPollingMutex |
( |
| ) |
|
#define RANDOM_BUFSIZE 4096 |
#define SC |
( |
|
weight | ) |
( 1024 / weight ) /* Scale factor */ |
#define SC_0 16384 /* SC( SC_0 ) evalutes to 0 */ |
#define SHARED_BUFSIZE 49152 /* Usually about 25K are filled */ |
#define SLOWPOLL_TIMEOUT 30 /* Time out after 30 seconds */ |
#define unlockPollingMutex |
( |
| ) |
|
void endRandomPolling |
( |
void |
| ) |
|
void initRandomPolling |
( |
void |
| ) |
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Definition at line 487 of file unix.c.