* Makefile.in (DLL_OFILES): Add arc4random.o.

* common.din: Export arc4random, arc4random_addrandom, arc4random_buf,
	arc4random_stir and arc4random_uniform.
	* mktemp.cc (arc4random): Remove static replacement function.
	* posix.sgml (std-bsd): Add arc4random functions.
	* include/cygwin/stdlib.h: Declare arc4random functions.
	* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
	* libc/arc4random.cc: New file implementing arc4random functions taken
	from FreeBSD.
This commit is contained in:
Corinna Vinschen
2013-05-21 19:04:49 +00:00
parent 3e8d2576fd
commit 291d93b58b
8 changed files with 388 additions and 19 deletions

View File

@ -1,6 +1,6 @@
/* stdlib.h
Copyright 2005, 2006, 2007, 2008, 2009, 2011 Red Hat Inc.
Copyright 2005, 2006, 2007, 2008, 2009, 2011, 2013 Red Hat Inc.
This file is part of Cygwin.
@ -18,6 +18,12 @@ extern "C"
{
#endif
__uint32_t arc4random(void);
void arc4random_addrandom(unsigned char *, int);
void arc4random_buf(void *, size_t);
void arc4random_stir(void);
__uint32_t arc4random_uniform(__uint32_t);
const char *getprogname (void);
void setprogname (const char *);