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
24
winsup/cygwin/libc/arc4random_stir.c
Normal file
24
winsup/cygwin/libc/arc4random_stir.c
Normal file
@ -0,0 +1,24 @@
|
||||
/* libc/arc4random_stir.c
|
||||
|
||||
Copyright 2016 Red Hat, Inc.
|
||||
|
||||
This file is part of Cygwin.
|
||||
|
||||
This software is a copyrighted work licensed under the terms of the
|
||||
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
||||
details. */
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
/* 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)
|
||||
{
|
||||
}
|
Reference in New Issue
Block a user