Masked Prime Iterator.
More...
#include <random-prime.h>
template<class Trait = IteratorCategories::HeuristicTag>
class LinBox::MaskedPrimeIterator< Trait >
Masked Prime Iterator.
Generates prime of specified length with fixed lower bits
◆ operator*()
const Prime_Type& operator* |
( |
| ) |
const |
|
inlineinherited |
get the random prime.
returns the actual prime.
- Warning
- a new prime is not generated.
◆ setSeed()
static void setSeed |
( |
uint64_t |
ul | ) |
|
|
inlinestaticinherited |
Sets the seed.
Set the random seed to be ul
.
- Parameters
-
◆ setBits()
void setBits |
( |
uint64_t |
bits | ) |
|
|
inlineinherited |
Sets the bit size.
- Parameters
-
◆ _prime
◆ _IPD
empty struct dealing with primality.
The documentation for this class was generated from the following file: