1*eabc0478Schristos /* $NetBSD: ntp_random.h,v 1.6 2024/08/18 20:46:50 christos Exp $ */ 2abb0f93cSkardel 3abb0f93cSkardel 4abb0f93cSkardel #include <ntp_types.h> 5abb0f93cSkardel 6b8ecfcfeSchristos void ntp_crypto_srandom(void); 7b8ecfcfeSchristos int ntp_crypto_random_buf(void *buf, size_t nbytes); 8b8ecfcfeSchristos 9abb0f93cSkardel long ntp_random (void); 10*eabc0478Schristos double ntp_uurandom(void); 11abb0f93cSkardel void ntp_srandom (unsigned long); 12abb0f93cSkardel void ntp_srandomdev (void); 13abb0f93cSkardel char * ntp_initstate (unsigned long, /* seed for R.N.G. */ 14abb0f93cSkardel char *, /* pointer to state array */ 15abb0f93cSkardel long /* # bytes of state info */ 16abb0f93cSkardel ); 17abb0f93cSkardel char * ntp_setstate (char *); /* pointer to state array */ 18abb0f93cSkardel 19abb0f93cSkardel 20abb0f93cSkardel 21