diff options
Diffstat (limited to 'src/lib/libc/stdlib/random.c')
-rw-r--r-- | src/lib/libc/stdlib/random.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/stdlib/random.c b/src/lib/libc/stdlib/random.c index 5a9a7c3313..9c5b9d0f3f 100644 --- a/src/lib/libc/stdlib/random.c +++ b/src/lib/libc/stdlib/random.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: random.c,v 1.16 2012/03/21 12:36:49 millert Exp $ */ | 1 | /* $OpenBSD: random.c,v 1.17 2012/06/01 01:01:57 guenther Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 1983 Regents of the University of California. | 3 | * Copyright (c) 1983 Regents of the University of California. |
4 | * All rights reserved. | 4 | * All rights reserved. |
@@ -326,7 +326,7 @@ initstate(u_int seed, char *arg_state, size_t n) | |||
326 | * Returns a pointer to the old state information. | 326 | * Returns a pointer to the old state information. |
327 | */ | 327 | */ |
328 | char * | 328 | char * |
329 | setstate(const char *arg_state) | 329 | setstate(char *arg_state) |
330 | { | 330 | { |
331 | int32_t *new_state = (int32_t *)arg_state; | 331 | int32_t *new_state = (int32_t *)arg_state; |
332 | int32_t type = new_state[0] % MAX_TYPES; | 332 | int32_t type = new_state[0] % MAX_TYPES; |