#include <_random.h>
Public Types | |
typedef T | value_type |
typedef int | seed_type |
Public Member Functions | |
random () | |
void | seed (const seed_type &x) |
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 |
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.
=========================================================================
Definition at line 82 of file _random.h.
|
|
|
|
|
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(). |
|
Definition at line 101 of file _random.h. References random< T, POOL_SIZE >::pool_index. Referenced by random< T, POOL_SIZE >::random(). |
|
Definition at line 104 of file _random.h. References random< T, POOL_SIZE >::mod, and random< T, POOL_SIZE >::offset. |
|
Definition at line 107 of file _random.h. References random< T, POOL_SIZE >::mod. |
|
Definition at line 110 of file _random.h. References random< T, POOL_SIZE >::entropy_pool. |
|
|
|
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. |
|
Definition at line 89 of file _random.h. Referenced by random< T, POOL_SIZE >::add_entropy(), and random< T, POOL_SIZE >::operator()(). |
|
Definition at line 90 of file _random.h. Referenced by random< T, POOL_SIZE >::operator()(), and random< T, POOL_SIZE >::seed(). |
|
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(). |
|
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(). |