xref: /netbsd-src/external/bsd/ntp/dist/include/ntp_random.h (revision 63aea4bd5b445e491ff0389fe27ec78b3099dba3)
1 /*	$NetBSD: ntp_random.h,v 1.3 2015/07/10 14:20:29 christos Exp $	*/
2 
3 
4 #include <ntp_types.h>
5 
6 void ntp_crypto_srandom(void);
7 int ntp_crypto_random_buf(void *buf, size_t nbytes);
8 
9 long ntp_random (void);
10 void ntp_srandom (unsigned long);
11 void ntp_srandomdev (void);
12 char * ntp_initstate (unsigned long, 	/* seed for R.N.G. */
13 			char *,		/* pointer to state array */
14 			long		/* # bytes of state info */
15 			);
16 char * ntp_setstate (char *);	/* pointer to state array */
17 
18 
19 
20