| 
    Turnstone Operating System
    
   | 
 
Random number generator using xoroshiro algorithms. More...
Functions | |
| MODULE ("turnstone.lib.random") | |
| static uint64_t | random_xoroshiro_rotl (const uint64_t x, int k) | 
| static uint64_t | random_xoroshiro_state_next (void) | 
| static uint64_t | random_xoroshiro_next (void) | 
| void | srand (uint64_t seed) | 
| initialize random generator   | |
| uint32_t | rand (void) | 
| generates random   | |
| uint64_t | rand64 (void) | 
| generates random   | |
Variables | |
| static uint64_t | random_xoroshiro_seed = 0 | 
| static uint64_t | random_xoroshiro_state [4] = {} | 
| static boolean_t | rdrand_supported = false | 
| static boolean_t | rdrand_initialized = false | 
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 |