My Project
Loading...
Searching...
No Matches
Static Public Member Functions
CFRandomFactory Class Reference

#include <cf_random.h>

Static Public Member Functions

static CFRandomgenerate ()
 

Detailed Description

Definition at line 87 of file cf_random.h.

Member Function Documentation

◆ generate()

CFRandom * CFRandomFactory::generate ( )
static

Definition at line 170 of file cf_random.cc.

171{
172 if ( getCharacteristic() == 0 )
173 return new IntRandom();
174 if ( getGFDegree() > 1 )
175 return new GFRandom();
176 else
177 return new FFRandom();
178}
int getGFDegree()
Definition: cf_char.cc:75
int FACTORY_PUBLIC getCharacteristic()
Definition: cf_char.cc:70
generate random elements in F_p
Definition: cf_random.h:44
generate random elements in GF
Definition: cf_random.h:32
generate random integers
Definition: cf_random.h:56

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