From f20179d6931df17c9310fd911dd4a348141ba72c Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 30 Jan 2018 04:01:56 +0000 Subject: remove arc4random (rc4 based) OpenBSD arc4random is using chacha20 cipher algorithm for a long time. This copy is still based on deprecated rc4 cipher algorithm. We could either update the arc4random.c or drop it. Drop it. Users should better use libbsd when using arc4random interface. Musl/glibc does not have arc4random either. --- include/stdlib.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'include') diff --git a/include/stdlib.h b/include/stdlib.h index 89477967e..6a253cc3f 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -987,13 +987,6 @@ extern int getloadavg (double __loadavg[], int __nelem) __THROW __nonnull ((1)); #endif -#ifdef __UCLIBC_HAS_ARC4RANDOM__ -# include -extern u_int32_t arc4random(void); -extern void arc4random_stir(void); -extern void arc4random_addrandom(unsigned char *, int); -#endif - #ifdef _LIBC extern int __drand48_iterate (unsigned short int xsubi[3], struct drand48_data *buffer) attribute_hidden; -- cgit v1.2.3