Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
Loading...
Searching...
No Matches
rand.c File Reference
#include "hal/rand/rand.h"
#include "hal/acpi/hpet.h"
#include "hal/cpu/cpuid.h"
#include "init/init.h"
#include "libk/serial.h"

Go to the source code of this file.

Macros

#define RAND_MAX   0xFFFFFFFF
 

Functions

 INIT (Rand)
 
uint32_t vxRand ()
 

Variables

static boolean_t random_available = 0
 

Macro Definition Documentation

◆ RAND_MAX

#define RAND_MAX   0xFFFFFFFF

Definition at line 9 of file rand.c.

Referenced by vxRand().

Function Documentation

◆ INIT()

INIT ( Rand )

Definition at line 11 of file rand.c.

References cpuid(), LOG_INFO, and random_available.

◆ vxRand()

uint32_t vxRand ( )

Definition at line 18 of file rand.c.

References RAND_MAX, random_available, vxHPETGetMainCount(), and vxHPETIsAvailable().

Referenced by send_command().

Variable Documentation

◆ random_available

boolean_t random_available = 0
static

Definition at line 7 of file rand.c.

Referenced by INIT(), and vxRand().