.svn folders cleaned
[libg2hec.git] / include / g2hec_rand.h
blobbbe45bcd156ee2b16ee3acc53bf46f8398befe62
1 /*++
2 Copyright (c) 2008
4 Module Name:
5 g2hec_rand.h
7 Summary:
8 G2HEC's pseudo random number seeding tool. It first tries to use
9 the file /dev/urandom as a source of random bits. If it fails,
10 then G2HEC falls back to deterministic random number generator.
11 Upon successful execution, a seed of 128 bits is returned.
13 Author:
14 Ning Shang 2008-09-03 Created
15 --*/
17 #ifndef G2HEC_RAND_H
18 #define G2HEC_RAND_H
20 #include <fcntl.h>
21 #include <NTL/ZZ.h>
22 #include "g2hec_nstools.h"
24 #define SEED_NBYTES 16
26 NTL_CLIENT
27 NS_G2_OPEN_NS
29 ZZ g2hec_rand();
31 NS_G2_CLOSE_NS
33 #endif /* G2HEC_RAND_H */