]> git.proxmox.com Git - mirror_frr.git/blob - tests/helpers/c/prng.h
*: reindent
[mirror_frr.git] / tests / helpers / c / prng.h
1 /*
2 * Very simple prng to allow for randomized tests with reproducable
3 * results.
4 *
5 * Copyright (C) 2012 by Open Source Routing.
6 * Copyright (C) 2012 by Internet Systems Consortium, Inc. ("ISC")
7 *
8 * This file is part of Quagga
9 *
10 * Quagga is free software; you can redistribute it and/or modify it
11 * under the terms of the GNU General Public License as published by the
12 * Free Software Foundation; either version 2, or (at your option) any
13 * later version.
14 *
15 * Quagga is distributed in the hope that it will be useful, but
16 * WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License along
21 * with this program; see the file COPYING; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23 */
24 #ifndef _PRNG_H
25 #define _PRNG_H
26
27 struct prng;
28
29 struct prng *prng_new(unsigned long long seed);
30 int prng_rand(struct prng *);
31 const char *prng_fuzz(struct prng *, const char *string, const char *charset,
32 unsigned int operations);
33 void prng_free(struct prng *);
34
35 #endif