libtc  20160415
Threshold Cryptography functions library
Functions
random.c File Reference
#include <assert.h>
#include <gmp.h>
#include <stdio.h>
#include <stdlib.h>
#include "mathutils.h"

Go to the source code of this file.

Functions

void random_dev (mpz_t rop, int bit_len)
 
void random_prime (mpz_t rop, int bit_len, random_fn random)
 

Function Documentation

void random_dev ( mpz_t  rop,
int  bit_len 
)

Definition at line 8 of file random.c.

void random_prime ( mpz_t  rop,
int  bit_len,
random_fn  random 
)

Definition at line 26 of file random.c.