mirror of
https://github.com/rn10950/RetroZilla.git
synced 2024-11-15 12:00:38 +01:00
25 lines
569 B
C
25 lines
569 B
C
/*
|
|
* bbs_rand.h
|
|
*
|
|
* Blum, Blum & Shub PRNG using the MPI library
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef _H_BBSRAND_
|
|
#define _H_BBSRAND_
|
|
|
|
#include <limits.h>
|
|
#include "mpi.h"
|
|
|
|
#define BBS_RAND_MAX UINT_MAX
|
|
|
|
/* Suggested length of seed data */
|
|
extern int bbs_seed_size;
|
|
|
|
void bbs_srand(unsigned char *data, int len);
|
|
unsigned int bbs_rand(void);
|
|
|
|
#endif /* end _H_BBSRAND_ */
|