|
linbox
|
Masked Prime Iterator. More...
#include <random-prime.h>
Inheritance diagram for MaskedPrimeIterator< Trait >:
Collaboration diagram for MaskedPrimeIterator< Trait >:Public Types | |
| typedef UniqueSamplingTrait< IteratorCategories::HeuristicTag > | UniqueSamplingTag |
| whether a prime can be picked more than once | |
Public Member Functions | |
| const Prime_Type & | operator* () const |
| get the random prime. More... | |
| void | setBits (uint64_t bits) |
| Sets the bit size. More... | |
Static Public Member Functions | |
| static void | setSeed (uint64_t ul) |
| Sets the seed. More... | |
Protected Attributes | |
| uint64_t | _bits |
| common lenght of all primes | |
| integer | _prime |
| the generated prime. | |
| Givaro::IntPrimeDom | _IPD |
| empty struct dealing with primality. | |
Masked Prime Iterator.
Generates prime of specified length with fixed lower bits
|
inlineinherited |
get the random prime.
returns the actual prime.
|
inlinestaticinherited |
Sets the seed.
Set the random seed to be ul.
| ul | the new seed. |
|
inlineinherited |
Sets the bit size.
| bits | the new bit size. |