Retro Rocket Kernel BASIC-Powered Operating System

Data Structures | Macros | Functions
random.h File Reference
`#include "kernel.h"`

## Data Structures
struct | mt_rand_t

## Macros
#define | STATE_VECTOR_LENGTH 624
#define | STATE_VECTOR_M 397
#define | RAND_MAX_ENTROPY (size_t)24
#define | RAND_MAX SIZE_MAX

## Functions
void | add_random_entropy (uint64_t bytes)
uint32_t | gen_rand_long (mt_rand_t *rand)
double | gen_rand_double (mt_rand_t *rand)
uint64_t | gen_rand_64 (mt_rand_t *rand)
uint64_t | mt_rand ()

## Macro Definition Documentation

## ◆ RAND_MAX

#define RAND_MAX SIZE_MAX

## ◆ RAND_MAX_ENTROPY

#define RAND_MAX_ENTROPY (size_t)24

## ◆ STATE_VECTOR_LENGTH

#define STATE_VECTOR_LENGTH 624

## ◆ STATE_VECTOR_M

#define STATE_VECTOR_M 397

## Function Documentation

## ◆ add_random_entropy()

void add_random_entropy | ( | uint64_t | bytes | ) |

## ◆ gen_rand_64()

uint64_t gen_rand_64 | ( | mt_rand_t * | rand | ) |

## ◆ gen_rand_double()

double gen_rand_double | ( | mt_rand_t * | rand | ) |

## ◆ gen_rand_long()

uint32_t gen_rand_long | ( | mt_rand_t * | rand | ) |

## ◆ mt_rand()

uint64_t mt_rand | ( |  | ) |