tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

netbsd stdlib.h srandom and initstate declarations incorrect



netbsd:

char    *initstate(unsigned long, char *, size_t);
long     random(void);
char    *setstate(char *);
void     srandom(unsigned long);

POSIX 
(http://pubs.opengroup.org/onlinepubs/9699919799/functions/initstate.html):

char *initstate(unsigned seed, char *state, size_t size);
long random(void);
char *setstate(char *state);
void srandom(unsigned seed);

(note that the netbsd definitions match the netbsd declarations.)

freebsd seems to have these wrong too. openbsd has the correct
declarations and definitions.

 --elliott


Home | Main Index | Thread Index | Old Index