mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
2002-03-11 Jakub Jelinek <jakub@redhat.com> * sysdeps/i386/elf/configure.in: Fix comment. * sysdeps/sparc/sparc64/configure.in: New. * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_load_address): Fix if .dynamic comes before .got. * config.h.in (SPARC64_DYNAMIC_BEFORE_GOT): Add. * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM): Fix typos. * string/strfry.c: Add some more randomness to the seed. Patch by James A Morrison <ja2morri@student.math.uwaterloo.ca>. Patch by James Antill <james@anqd.org> [PR libc/2787].
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1992, 1996, 1999 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1992, 1996, 1999, 2002 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -19,6 +19,7 @@
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
char *
|
||||
strfry (char *string)
|
||||
@ -31,7 +32,8 @@ strfry (char *string)
|
||||
{
|
||||
static char state[32];
|
||||
rdata.state = NULL;
|
||||
__initstate_r (time ((time_t *) NULL), state, sizeof (state), &rdata);
|
||||
__initstate_r (time ((time_t *) NULL) ^ getpid (),
|
||||
state, sizeof (state), &rdata);
|
||||
init = 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user