summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/random.c
diff options
context:
space:
mode:
authorderaadt <>1998-02-06 01:49:08 +0000
committerderaadt <>1998-02-06 01:49:08 +0000
commit3e1f199d9076db124c95fd0475b1ce73e079ac21 (patch)
tree4d2bf3b28db43c73a7865c40e806badf9b5b8491 /src/lib/libc/stdlib/random.c
parent41b1d7242a8ea86e10caae6482d05b00f5900341 (diff)
downloadopenbsd-3e1f199d9076db124c95fd0475b1ce73e079ac21.tar.gz
openbsd-3e1f199d9076db124c95fd0475b1ce73e079ac21.tar.bz2
openbsd-3e1f199d9076db124c95fd0475b1ce73e079ac21.zip
size_t n in initstate(); XPG
Diffstat (limited to 'src/lib/libc/stdlib/random.c')
-rw-r--r--src/lib/libc/stdlib/random.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/stdlib/random.c b/src/lib/libc/stdlib/random.c
index 46b67b5ec7..1ac61f2cec 100644
--- a/src/lib/libc/stdlib/random.c
+++ b/src/lib/libc/stdlib/random.c
@@ -32,7 +32,7 @@
32 */ 32 */
33 33
34#if defined(LIBC_SCCS) && !defined(lint) 34#if defined(LIBC_SCCS) && !defined(lint)
35static char *rcsid = "$OpenBSD: random.c,v 1.4 1996/09/15 09:31:51 tholo Exp $"; 35static char *rcsid = "$OpenBSD: random.c,v 1.5 1998/02/06 01:49:08 deraadt Exp $";
36#endif /* LIBC_SCCS and not lint */ 36#endif /* LIBC_SCCS and not lint */
37 37
38#include <stdio.h> 38#include <stdio.h>
@@ -242,7 +242,7 @@ char *
242initstate(seed, arg_state, n) 242initstate(seed, arg_state, n)
243 u_int seed; /* seed for R.N.G. */ 243 u_int seed; /* seed for R.N.G. */
244 char *arg_state; /* pointer to state array */ 244 char *arg_state; /* pointer to state array */
245 int n; /* # bytes of state info */ 245 size_t n; /* # bytes of state info */
246{ 246{
247 register char *ostate = (char *)(&state[-1]); 247 register char *ostate = (char *)(&state[-1]);
248 248