ETL
0.04.19
|
#include <_random.h>
Public Types | |
typedef T | value_type |
typedef int | seed_type |
Public Member Functions | |
random () | |
void | seed (const seed_type &x __attribute__((unused))) |
void | set_range (const value_type &floor, const value_type &ceil) |
void | set_range (const value_type &ceil) |
void | add_entropy (value_type entropy) |
void | add_entropy (const char *entropy) |
value_type | operator() (void) |
Private Attributes | |
value_type | entropy_pool [POOL_SIZE] |
int | pool_index |
value_type | mod |
value_type | offset |
======================================================================== Extended Template and Library Random Number Generator Class Implementation $Id$
Copyright (c) 2002 Robert B. Quattlebaum Jr.
This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
=== N O T E S ===========================================================
This is an internal header file, included by other ETL headers. You should not attempt to use it directly.
typedef T random< T, POOL_SIZE >::value_type |
Definition at line 95 of file _random.h.
References random< T, POOL_SIZE >::mod, random< T, POOL_SIZE >::offset, and random< T, POOL_SIZE >::seed().
|
inline |
Definition at line 101 of file _random.h.
References random< T, POOL_SIZE >::pool_index.
Referenced by random< T, POOL_SIZE >::random().
|
inline |
Definition at line 104 of file _random.h.
References floor(), random< T, POOL_SIZE >::mod, and random< T, POOL_SIZE >::offset.
|
inline |
Definition at line 107 of file _random.h.
References ceil(), and random< T, POOL_SIZE >::mod.
|
inline |
Definition at line 110 of file _random.h.
References random< T, POOL_SIZE >::entropy_pool.
|
inline |
|
inline |
Definition at line 121 of file _random.h.
References random< T, POOL_SIZE >::entropy_pool, random< T, POOL_SIZE >::mod, random< T, POOL_SIZE >::offset, and random< T, POOL_SIZE >::pool_index.
|
private |
Definition at line 89 of file _random.h.
Referenced by random< T, POOL_SIZE >::add_entropy(), and random< T, POOL_SIZE >::operator()().
|
private |
Definition at line 90 of file _random.h.
Referenced by random< T, POOL_SIZE >::operator()(), and random< T, POOL_SIZE >::seed().
|
private |
Definition at line 92 of file _random.h.
Referenced by random< T, POOL_SIZE >::operator()(), random< T, POOL_SIZE >::random(), and random< T, POOL_SIZE >::set_range().
|
private |
Definition at line 92 of file _random.h.
Referenced by random< T, POOL_SIZE >::operator()(), random< T, POOL_SIZE >::random(), and random< T, POOL_SIZE >::set_range().