Turnstone Operating System
Loading...
Searching...
No Matches
random.h File Reference

Random header. More...

#include <types.h>

Macros

#define ___RANDOM_H   0
 

Functions

void srand (uint64_t seed)
 initialize random generator More...
 
uint32_t rand (void)
 generates random More...
 
uint64_t rand64 (void)
 generates random More...
 

Detailed Description

Random header.

This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.

Function Documentation

◆ rand()

uint32_t rand ( void  )

generates random

Returns
32 bit random number

◆ rand64()

uint64_t rand64 ( void  )

generates random

Returns
64 bit random number

◆ srand()

void srand ( uint64_t  seed)

initialize random generator

Parameters
[in]seedrandom generator seed