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:
committed by
Corinna Vinschen
parent
2519f0ef0c
commit
08537d88f6
@ -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__ */
|
||||
|
Reference in New Issue
Block a user