blob: 2f54749d0d456b2797f14187fb28e7d58279eebd [file] [log] [blame]
Austin Schuhdace2a62020-08-18 10:56:48 -07001/*
2
3Copyright 2011, 2018 Free Software Foundation, Inc.
4
5This file is part of the GNU MP Library test suite.
6
7The GNU MP Library test suite is free software; you can redistribute it
8and/or modify it under the terms of the GNU General Public License as
9published by the Free Software Foundation; either version 3 of the License,
10or (at your option) any later version.
11
12The GNU MP Library test suite is distributed in the hope that it will be
13useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
15Public License for more details.
16
17You should have received a copy of the GNU General Public License along with
18the GNU MP Library test suite. If not, see https://www.gnu.org/licenses/. */
19
20#include "../mini-gmp.h"
21#include "hex-random.h"
22
23void mini_urandomb (mpz_t, unsigned long);
24void mini_rrandomb (mpz_t, unsigned long);
25void mini_rrandomb_export (mpz_t r, void *dst, size_t *countp,
26 int order, size_t size, int endian,
27 unsigned long bits);
28
29void mini_random_op2 (enum hex_random_op, unsigned long, mpz_t, mpz_t);
30void mini_random_op3 (enum hex_random_op, unsigned long, mpz_t, mpz_t, mpz_t);
31void mini_random_op4 (enum hex_random_op, unsigned long, mpz_t, mpz_t, mpz_t, mpz_t);
32void mini_random_scan_op (enum hex_random_op, unsigned long, mpz_t, mp_bitcnt_t *, mp_bitcnt_t *);
33void mini_random_bit_op (enum hex_random_op, unsigned long, mpz_t, mp_bitcnt_t *, mpz_t);
34void mini_random_lucm_op (unsigned long, mpz_t, mpz_t, mpz_t,
35 long *, unsigned long *, int *);