Givaro 4.2.1
test-random.C File Reference

we test bounds for random Integers More...

#include <iostream>
#include <givaro/givrandom.h>
#include <givaro/givinteger.h>
#include <givaro/modular.h>
#include <givaro/montgomery.h>
#include <givaro/modular-ruint.h>
#include <givaro/modular-balanced.h>

Functions

int test1 (size_t nbiters)
 tests ret= .func(arg,arg); ...
 
int test2 (size_t nbiters)
 tests
 
int test3 (size_t nbiters)
 tests
 
int test4 (size_t nbiters)
 test possibly <0 random numbers
 
int test5 (size_t nbiters)
 tests standard interface
 
int brandtest (uint64_t seed, size_t nbiters)
 
template<typename Field>
int modtest (Field &F, uint64_t seed)
 
int main (int argc, char **argv)
 

Detailed Description

we test bounds for random Integers

Test
we test bounds for random Integers

Function Documentation

◆ test1()

int test1 ( size_t nbiters)

tests ret= .func(arg,arg); ...

◆ test2()

int test2 ( size_t nbiters)

tests

ret= ::func(arg,arg); 

◆ test3()

int test3 ( size_t nbiters)

tests

::func(ret,arg,arg); 

◆ test4()

int test4 ( size_t nbiters)

test possibly <0 random numbers

◆ test5()

int test5 ( size_t nbiters)

tests standard interface

◆ brandtest()

int brandtest ( uint64_t seed,
size_t nbiters )

◆ modtest()

template<typename Field>
int modtest ( Field & F,
uint64_t seed )

◆ main()

int main ( int argc,
char ** argv )