Created by Scott Robert Ladd at Coyote Gulch Productions.
#include <mwc256.h>
libcoyotl::mwc256::mwc256 | ( | ) |
The constructor initializes the prng seed from either the time or some stochastic source such as /dev/random or /dev/urandom.
libcoyotl::mwc256::mwc256 | ( | uint32_t | seed | ) |
The constructor uses an explicit value for the seed.
seed | - Seed value used to "start" or seed the generator |
virtual void libcoyotl::mwc256::init | ( | uint32_t | seed | ) | [virtual] |
Resets the generator using the provided seed value.
seed | - Seed value used to "start" or seed the generator |
Reimplemented from libcoyotl::prng.
virtual uint32_t libcoyotl::mwc256::get_rand | ( | ) | [virtual] |
Returns the next uint32_t in sequence.
Implements libcoyotl::prng.
© 1996-2005 Scott Robert Ladd. All rights reserved.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.