Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
random.h File Reference
#include <uapi/linux/random.h>

Go to the source code of this file.

Functions

void add_device_randomness (const void *, unsigned int)
 
void add_input_randomness (unsigned int type, unsigned int code, unsigned int value)
 
void add_interrupt_randomness (int irq, int irq_flags)
 
void get_random_bytes (void *buf, int nbytes)
 
void get_random_bytes_arch (void *buf, int nbytes)
 
void generate_random_uuid (unsigned char uuid_out[16])
 
unsigned int get_random_int (void)
 
unsigned long randomize_range (unsigned long start, unsigned long end, unsigned long len)
 
u32 random32 (void)
 
void srandom32 (u32 seed)
 
u32 prandom32 (struct rnd_state *)
 

Variables

struct file_operations random_fops urandom_fops
 

Function Documentation

void add_device_randomness ( const void ,
unsigned  int 
)

Definition at line 647 of file random.c.

void add_input_randomness ( unsigned int  type,
unsigned int  code,
unsigned int  value 
)

Definition at line 729 of file random.c.

void add_interrupt_randomness ( int  irq,
int  irq_flags 
)

Definition at line 747 of file random.c.

void generate_random_uuid ( unsigned char  uuid_out[16])

Definition at line 1324 of file random.c.

void get_random_bytes ( void buf,
int  nbytes 
)

Definition at line 1033 of file random.c.

void get_random_bytes_arch ( void buf,
int  nbytes 
)

Definition at line 1049 of file random.c.

unsigned int get_random_int ( void  )

Definition at line 1453 of file random.c.

u32 prandom32 ( struct rnd_state state)

prandom32 - seeded pseudo-random number generator. : pointer to state structure holding seeded state.

This is used for pseudo-randomness with no outside seeding. For more random results, use random32().

Definition at line 51 of file random32.c.

u32 random32 ( void  )

random32 - pseudo random number generator

A 32 bit pseudo-random number is generated using a fast algorithm suitable for simulation. This algorithm is NOT considered safe for cryptographic use.

Definition at line 70 of file random32.c.

unsigned long randomize_range ( unsigned long  start,
unsigned long  end,
unsigned long  len 
)

Definition at line 1481 of file random.c.

void srandom32 ( u32  entropy)

srandom32 - add entropy to pseudo random number generator : seed value

Add some additional seeding to the random32() pool.

Definition at line 86 of file random32.c.

Variable Documentation

Definition at line 1306 of file random.c.