add RANDOM_MAX define from anon ymous
This commit is contained in:
parent
67470a76a1
commit
c75e135b85
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: stdlib.h,v 1.81 2008/02/02 20:56:46 christos Exp $ */
|
||||
/* $NetBSD: stdlib.h,v 1.82 2008/02/28 16:13:35 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
@ -176,6 +176,9 @@ char *initstate(unsigned long, char *, size_t);
|
||||
long random(void);
|
||||
char *setstate(char *);
|
||||
void srandom(unsigned long);
|
||||
#ifdef _NETBSD_SOURCE
|
||||
#define RANDOM_MAX (((long)1 << 31) - 1)
|
||||
#endif
|
||||
|
||||
char *mkdtemp(char *);
|
||||
int mkstemp(char *);
|
||||
@ -238,10 +241,10 @@ int posix_memalign(void **, size_t, size_t);
|
||||
#if defined(_NETBSD_SOURCE)
|
||||
#if defined(alloca) && (alloca == __builtin_alloca) && \
|
||||
defined(__GNUC__) && (__GNUC__ < 2)
|
||||
void *alloca(int); /* built-in for gcc */
|
||||
#else
|
||||
void *alloca(size_t);
|
||||
#endif /* __GNUC__ */
|
||||
void *alloca(int); /* built-in for gcc */
|
||||
#else
|
||||
void *alloca(size_t);
|
||||
#endif /* __GNUC__ */
|
||||
|
||||
uint32_t arc4random(void);
|
||||
void arc4random_stir(void);
|
||||
|
Loading…
Reference in New Issue
Block a user