-
Notifications
You must be signed in to change notification settings - Fork 0
/
sprng.h
36 lines (32 loc) · 1.01 KB
/
sprng.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
///////////////////////////////////////////////
//
// **************************
// ** ENGLISH - 14/03/2013 **
//
// Project/Software name: sponge.lib
// Author: "Van Gegel" <gegelcopy@ukr.net>
//
// THIS IS A FREE SOFTWARE AND FOR TEST ONLY!!!
// Please do not use it in the case of life and death
// This software is released under GNU LGPL:
//
// * LGPL 3.0 <http://www.gnu.org/licenses/lgpl.html>
//
// You’re free to copy, distribute and make commercial use
// of this software under the following conditions:
//
// * You have to cite the author (and copyright owner): Van Gegel
// * You have to provide a link to the author’s Homepage: <http://torfone.org>
//
///////////////////////////////////////////////
#ifndef SPRNG_H
#define SPRNG_H
typedef unsigned long ulong;
typedef unsigned short ushort;
typedef unsigned char uchar;
int randInit(uchar const *seed, int len);
void randFeed(uchar const *seed, int len);
void randFetch(uchar *randout, int len);
void randForget(void);
void randDestroy(void);
#endif // SPRNG_H