summaryrefslogtreecommitdiff
path: root/src/math/random.h
blob: de03abb017deffda28470387cad7b5aa8891ecb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * ecgen, tool for generating Elliptic curve domain parameters
 * Copyright (C) 2017 J08nY
 */
/**
 * @file random.h
 */
#ifndef ECGEN_RANDOM_H
#define ECGEN_RANDOM_H

#include <pari/pari.h>
#include <stdbool.h>

bool random_init(void);

GEN random_prime(unsigned long bits);

GEN random_int(unsigned long bits);

#endif  // ECGEN_RANDOM_H