xref: /freebsd/contrib/ntp/include/ntp_random.h (revision a466cc55373fc3cf86837f09da729535b57e69a1)
1ea906c41SOllivier Robert 
2ea906c41SOllivier Robert #include <ntp_types.h>
3ea906c41SOllivier Robert 
42b15cb3dSCy Schubert void ntp_crypto_srandom(void);
52b15cb3dSCy Schubert int ntp_crypto_random_buf(void *buf, size_t nbytes);
62b15cb3dSCy Schubert 
72b15cb3dSCy Schubert long ntp_random (void);
8*a466cc55SCy Schubert double ntp_uurandom(void);
92b15cb3dSCy Schubert void ntp_srandom (unsigned long);
102b15cb3dSCy Schubert void ntp_srandomdev (void);
112b15cb3dSCy Schubert char * ntp_initstate (unsigned long, 	/* seed for R.N.G. */
12ea906c41SOllivier Robert 			char *,		/* pointer to state array */
13ea906c41SOllivier Robert 			long		/* # bytes of state info */
142b15cb3dSCy Schubert 			);
152b15cb3dSCy Schubert char * ntp_setstate (char *);	/* pointer to state array */
16ea906c41SOllivier Robert 
17ea906c41SOllivier Robert 
18ea906c41SOllivier Robert 
19