michael@0: /* michael@0: * bbs_rand.h michael@0: * michael@0: * Blum, Blum & Shub PRNG using the MPI library michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef _H_BBSRAND_ michael@0: #define _H_BBSRAND_ michael@0: michael@0: #include michael@0: #include "mpi.h" michael@0: michael@0: #define BBS_RAND_MAX UINT_MAX michael@0: michael@0: /* Suggested length of seed data */ michael@0: extern int bbs_seed_size; michael@0: michael@0: void bbs_srand(unsigned char *data, int len); michael@0: unsigned int bbs_rand(void); michael@0: michael@0: #endif /* end _H_BBSRAND_ */