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

generate random elements in F_p More...

#include <cf_random.h>

Public Member Functions

 FFRandom ()
 
 ~FFRandom ()
 
CanonicalForm generate () const
 
CFRandomclone () const
 
- Public Member Functions inherited from CFRandom
virtual ~CFRandom ()
 
virtual CanonicalForm generate () const
 
virtual CFRandomclone () const
 

Detailed Description

generate random elements in F_p

Definition at line 43 of file cf_random.h.

Constructor & Destructor Documentation

◆ FFRandom()

FFRandom::FFRandom ( )
inline

Definition at line 46 of file cf_random.h.

46{}

◆ ~FFRandom()

FFRandom::~FFRandom ( )
inline

Definition at line 47 of file cf_random.h.

47{}

Member Function Documentation

◆ clone()

CFRandom * FFRandom::clone ( ) const
virtual

Reimplemented from CFRandom.

Definition at line 73 of file cf_random.cc.

74{
75 return new FFRandom();
76}
FFRandom()
Definition: cf_random.h:46

◆ generate()

CanonicalForm FFRandom::generate ( ) const
virtual

Reimplemented from CFRandom.

Definition at line 68 of file cf_random.cc.

69{
71}
int factoryrandom(int n)
random integers with abs less than n
Definition: cf_random.cc:180
factory's main class
Definition: canonicalform.h:86
VAR int ff_prime
Definition: ffops.cc:14
InternalCF * int2imm_p(long i)
Definition: imm.h:101

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