Om  1.0.0
A universal framework for multimedia simulation
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
om::math::Xoroshiro128< numBytes > Class Template Reference

An implementation of the Xoroshiro128+ pseudorandom number generator. More...

#include <omRandom.h>

Public Types

typedef UInt64 SeedType
 The seed type for this generator. More...
 
typedef RNGOutput< numBytes >::Type OutputType
 The output type for this generator. More...
 

Static Public Member Functions

static OutputType next (SeedType *state)
 Advance the specified random generator state and return the next output value. More...
 

Static Public Attributes

static const Size SEED_SIZE = 2
 The number of seed values that are used as the state for this generator. More...
 

Detailed Description

template<Size numBytes>
class om::math::Xoroshiro128< numBytes >

An implementation of the Xoroshiro128+ pseudorandom number generator.

Original version by David Blackman and Sebastiano Vigna. A comparison of the performance versus other PRNGs can be found at the author's website: http://xoroshiro.di.unimi.it

Member Typedef Documentation

template<Size numBytes>
typedef UInt64 om::math::Xoroshiro128< numBytes >::SeedType

The seed type for this generator.

template<Size numBytes>
typedef RNGOutput<numBytes>::Type om::math::Xoroshiro128< numBytes >::OutputType

The output type for this generator.

Member Function Documentation

template<Size numBytes>
static OutputType om::math::Xoroshiro128< numBytes >::next ( SeedType state)
inlinestatic

Advance the specified random generator state and return the next output value.

Member Data Documentation

template<Size numBytes>
const Size om::math::Xoroshiro128< numBytes >::SEED_SIZE = 2
static

The number of seed values that are used as the state for this generator.


The documentation for this class was generated from the following file: