[GLT Math]

`#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. |

**Author:**- Larry Smith , Nigel Stewart, RMIT (nigels.com@gmail.com)

**Note:**- Original Pascal implementation from unknown source

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.

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

- math/random.h
- math/random.cpp

Generated on Tue Nov 5 11:11:45 2002 for GLT by 1.2.18