aboutsummaryrefslogtreecommitdiff
path: root/stdlib/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/random.c')
-rw-r--r--stdlib/random.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/stdlib/random.c b/stdlib/random.c
index 0c9e02e..137d2ba 100644
--- a/stdlib/random.c
+++ b/stdlib/random.c
@@ -205,8 +205,7 @@ __libc_lock_define_initialized (static, lock)
introduced by the L.C.R.N.G. Note that the initialization of randtbl[]
for default usage relies on values produced by this routine. */
void
-__srandom (x)
- unsigned int x;
+__srandom (unsigned int x)
{
__libc_lock_lock (lock);
(void) __srandom_r (x, &unsafe_state);
@@ -228,10 +227,7 @@ weak_alias (__srandom, srand)
setstate so that it doesn't matter when initstate is called.
Returns a pointer to the old state. */
char *
-__initstate (seed, arg_state, n)
- unsigned int seed;
- char *arg_state;
- size_t n;
+__initstate (unsigned int seed, char *arg_state, size_t n)
{
int32_t *ostate;
int ret;
@@ -258,8 +254,7 @@ weak_alias (__initstate, initstate)
same state as the current state
Returns a pointer to the old state information. */
char *
-__setstate (arg_state)
- char *arg_state;
+__setstate (char *arg_state)
{
int32_t *ostate;