#include <random.h>
Public Methods | |
| GltRandomLFSRMix (const uint32 seed1=199125, const uint32 seed2=90618, const uint32 seed3=189419) | |
| Constructor. | |
| GltRandomLFSRMix (const GltRandomLFSRMix &rng) | |
| Copy constructor. | |
| ~GltRandomLFSRMix () | |
| Destructor. | |
| uint32 | rand () const |
| 32-bit random number | |
| uint32 | max () const |
| Maximum possible random number: 0xFFFFFFFF. | |
| GltRandomLFSRMix & | base () |
| Base random number generator. | |
| const GltRandomLFSRMix & | base () const |
| Base random number generator. | |
Static Public Attributes | |
| GltRandomLFSRMix | rng |
| A global LFSRMix random number generator for convenience. | |
It is not really known how good this method is for random number generation - but it has the advantage of generating 32 random bits. Probably not recommended for crypto applications....
Further information about LFSRs:
B. Schneier, Applied Cryptography, 2nd Ed, Johyn Wiley & Sons
Definition at line 111 of file random.h.
1.2.18