]>
git.proxmox.com Git - mirror_frr.git/blob - tests/helpers/c/prng.h
2 * Very simple prng to allow for randomized tests with reproducable
5 * Copyright (C) 2012 by Open Source Routing.
6 * Copyright (C) 2012 by Internet Systems Consortium, Inc. ("ISC")
8 * This file is part of Quagga
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
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.
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
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
*);