Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
fast_random.h File Reference

Helpers to work with random numbers. More...

#include "roc_core/stddefs.h"
Include dependency graph for fast_random.h:

Go to the source code of this file.

Namespaces

 roc
 Root namespace.
 
 roc::core
 General-purpose building blocks and platform abstraction layer.
 

Functions

uint32_t roc::core::fast_random ()
 Get a random integer from a non cryptographically secure, but fast PRNG. Thread-safe. More...
 
uint32_t roc::core::fast_random_range (uint32_t from, uint32_t to)
 Get a random integer from a non cryptographically secure, but fast PRNG. Thread-safe. More...
 
double roc::core::fast_random_gaussian ()
 Get a random double from a non cryptographically secure, but fast PRNG. Thread-safe. More...
 

Detailed Description

Helpers to work with random numbers.

Definition in file fast_random.h.