projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Partial implementation of the platform-independent dialogue-box interface
[u/mdw/putty]
/
noise.c
diff --git
a/noise.c
b/noise.c
index
141f111
..
a9dfa89
100644
(file)
--- a/
noise.c
+++ b/
noise.c
@@
-40,6
+40,8
@@
void noise_get_heavy(void (*func) (void *, int))
}
read_random_seed(func);
}
read_random_seed(func);
+ /* Update the seed immediately, in case another instance uses it. */
+ random_save_seed();
gsps = NULL;
mod = GetModuleHandle("KERNEL32");
gsps = NULL;
mod = GetModuleHandle("KERNEL32");
@@
-56,6
+58,7
@@
void random_save_seed(void)
if (random_active) {
random_get_savedata(&data, &len);
write_random_seed(data, len);
if (random_active) {
random_get_savedata(&data, &len);
write_random_seed(data, len);
+ sfree(data);
}
}
}
}