Hi,
it seems like mutt doesn't initialize the rand like mutt-ng
does so this would be the right:

--- mutt-1.5.8/muttlib.c        2005-02-12 20:30:16.000000000 +0100
+++ muttlib.c   2005-05-31 23:06:15.000000000 +0200
@@ -668,7 +668,10 @@

 void _mutt_mktemp (char *s, const char *src, int line)
 {
-  snprintf (s, _POSIX_PATH_MAX, "%s/mutt-%s-%d-%d-%d", NONULL (Tempdir), 
NONULL(Hostname)
, (int) getuid(), (int) getpid (), Counter++);
+ long sek;
+ time(&sek);
+ srand(sek);
+  snprintf (s, _POSIX_PATH_MAX, "%s/mutt-%s-%d-%d-%d%x%x", NONULL (Tempdir), 
NONULL(Hostn
ame), (int) getuid(), (int) getpid (), Counter++, (unsigned int) rand(), 
(unsigned int) ra
nd());
   dprint (1, (debugfile, "%s:%d: mutt_mktemp returns \"%s\".\n", src, line, 
s));
   unlink (s);
 }

Regards Nico
-- 
Nico Golde - [EMAIL PROTECTED] | GPG: 1024D/73647CFF
http://www.ngolde.de | http://www.muttng.org | http://grml.org 
VIM has two modes - the one in which it beeps 
and the one in which it doesn't -- encrypted mail preferred

Attachment: pgpFdTR2tBg5r.pgp
Description: PGP signature

Reply via email to