소스 검색

prototypes for arc4random

Mike Frysinger 20 년 전
부모
커밋
965f9f7907
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      include/stdlib.h

+ 6 - 0
include/stdlib.h

@@ -845,6 +845,12 @@ extern int getloadavg (double __loadavg[], int __nelem)
      __THROW __nonnull ((1));
 #endif
 
+#ifdef __UCLIBC_HAS_ARC4RANDOM__
+extern u_int32_t arc4random(void);
+extern void arc4random_stir(void);
+extern void arc4random_addrandom(unsigned char *, int);
+#endif
+
 #endif /* don't just need malloc and calloc */
 #undef __need_malloc_and_calloc