Move arc4random Cygwin only code to Cygwin

Keep the Newlib arc4random.c identical to the OpenBSD upstream version.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>.
This commit is contained in:
Sebastian Huber
2016-03-21 08:12:54 +01:00
committed by Corinna Vinschen
parent 2519f0ef0c
commit 08537d88f6
3 changed files with 25 additions and 15 deletions

View File

@ -193,18 +193,3 @@ arc4random_buf(void *buf, size_t n)
_rs_random_buf(buf, n);
_ARC4_UNLOCK();
}
#ifdef __CYGWIN__
/* Exported functions removed from OpenBSD in the meantime. Keep them,
but make them non-functional. They don't return a value anyway. */
void
arc4random_stir(void)
{
}
void
arc4random_addrandom(u_char *dat, int datlen)
{
}
#endif /* __CYGWIN__ */