summaryrefslogtreecommitdiff
path: root/src/math/random.h
blob: 34c5bd51f40559bd32f550b2f03e6184fbe71170 (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(long bits);

GEN random_int(long bits);

#endif  // ECGEN_RANDOM_H