Turnstone Operating System
|
Random number generator using xoroshiro algorithms. More...
Functions | |
MODULE ("turnstone.lib.random") | |
uint64_t | random_xoroshiro_state_next (void) |
uint64_t | random_xoroshiro_next (void) |
static uint64_t | random_xoroshiro_rotl (const uint64_t x, int k) |
void | srand (uint64_t seed) |
initialize random generator More... | |
uint32_t | rand (void) |
generates random More... | |
uint64_t | rand64 (void) |
generates random More... | |
Variables | |
uint64_t | random_xoroshiro_seed = 0 |
uint64_t | random_xoroshiro_state [4] = {} |
Random number generator using xoroshiro algorithms.
This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.
uint32_t rand | ( | void | ) |
generates random
uint64_t rand64 | ( | void | ) |
generates random
void srand | ( | uint64_t | seed | ) |
initialize random generator
[in] | seed | random generator seed |