xref: /freebsd/contrib/ntp/include/ntp_random.h (revision 2b15cb3d0922bd70ea592f0da9b4a5b167f4d53f)
1ea906c41SOllivier Robert 
2ea906c41SOllivier Robert #include <ntp_types.h>
3ea906c41SOllivier Robert 
4*2b15cb3dSCy Schubert void ntp_crypto_srandom(void);
5*2b15cb3dSCy Schubert int ntp_crypto_random_buf(void *buf, size_t nbytes);
6*2b15cb3dSCy Schubert 
7*2b15cb3dSCy Schubert long ntp_random (void);
8*2b15cb3dSCy Schubert void ntp_srandom (unsigned long);
9*2b15cb3dSCy Schubert void ntp_srandomdev (void);
10*2b15cb3dSCy Schubert char * ntp_initstate (unsigned long, 	/* seed for R.N.G. */
11ea906c41SOllivier Robert 			char *,		/* pointer to state array */
12ea906c41SOllivier Robert 			long		/* # bytes of state info */
13*2b15cb3dSCy Schubert 			);
14*2b15cb3dSCy Schubert char * ntp_setstate (char *);	/* pointer to state array */
15ea906c41SOllivier Robert 
16ea906c41SOllivier Robert 
17ea906c41SOllivier Robert 
18