From 89a3dd449a782f369c9ba2af1e7933b69323c4ea Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 12 Mar 2002 00:38:37 +0000 Subject: Update. 2002-03-11 Jakub Jelinek * 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 . Patch by James Antill [PR libc/2787]. --- string/strfry.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'string') diff --git a/string/strfry.c b/string/strfry.c index 4bb2255..112dd4a 100644 --- a/string/strfry.c +++ b/string/strfry.c @@ -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 #include #include +#include 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; } -- cgit v1.1