Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
random.h
Go to the documentation of this file.
1#ifndef RANDOM_H
2#define RANDOM_H
3
4#include <inttypes.h>
6
7#define random_boundedl1 COMMON(random_boundedl1)
8#define random_coin COMMON(random_coin)
9
10// // set up e[0]..e[w-1] having l1 norm at most S, assuming S<128, w<128
11// void random_boundedl1(int8_t *e,long long w,long long S);
12
13// return -1 with probability num/den, 0 with probability 1-num/den
14// assuming 0 <= num <= den, 0 < den < 2^63
15int64_t random_coin(uint64_t num,uint64_t den);
16
17void random_wombats(uint8_t *key, const long long numkeys, const long long batch_start, const long long batch_stop, const long long batch_sumykeys);
18
19#endif
num
#define batch_start
Definition primes.h:55
#define batch_stop
Definition primes.h:56
void random_wombats(uint8_t *key, const long long numkeys, const long long batch_start, const long long batch_stop, const long long batch_sumykeys)
Definition random.c:15
#define random_coin
Definition random.h:8