Fix typing of srandom() and initstate().
authored <ed@FreeBSD.org>
Tue, 26 Jul 2016 20:11:29 +0000 (20:11 +0000)
committered <ed@FreeBSD.org>
Tue, 26 Jul 2016 20:11:29 +0000 (20:11 +0000)
commita663be12a092fd3298ff39e89d0e366acce29678
tree9fb8e0db1cc1b9b7808e6bff91a4cac6ebc5c2a2
parent6918be444a52cef95451e7b5c4efa57f662e2835
Fix typing of srandom() and initstate().

POSIX requires that these functions have an unsigned int for their first
argument; not an unsigned long.

My reasoning is that we can safely change these functions without
breaking the ABI. As far as I know, our supported architectures either
use registers for passing function arguments that are at least as big as
long (e.g., amd64), or int and long are of the same size (e.g., i386).

Reviewed by: ache
Differential Revision: https://reviews.freebsd.org/D6644
include/stdlib.h
lib/libc/stdlib/random.3
lib/libc/stdlib/random.c