security/nss/lib/freebl/mpi/utils/bbs_rand.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 /*
     2  *  bbs_rand.h
     3  *
     4  *  Blum, Blum & Shub PRNG using the MPI library
     5  *
     6  * This Source Code Form is subject to the terms of the Mozilla Public
     7  * License, v. 2.0. If a copy of the MPL was not distributed with this
     8  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
    10 #ifndef _H_BBSRAND_
    11 #define _H_BBSRAND_
    13 #include <limits.h>
    14 #include "mpi.h"
    16 #define  BBS_RAND_MAX    UINT_MAX
    18 /* Suggested length of seed data */
    19 extern int bbs_seed_size;
    21 void         bbs_srand(unsigned char *data, int len);
    22 unsigned int bbs_rand(void);
    24 #endif /* end _H_BBSRAND_ */

mercurial