chiark
/
gitweb
/
~mdw
/
tripe
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use new Catacomb `rand_quick' to gather entropy from other fast sources.
[tripe]
/
server
/
tripe.h
diff --git
a/server/tripe.h
b/server/tripe.h
index 9e298c806f6749f6a0c076e92351953d09193e9f..a967ae6d778b56d93d2c0f23c86ea62089d5107a 100644
(file)
--- a/
server/tripe.h
+++ b/
server/tripe.h
@@
-576,7
+576,8
@@
extern unsigned tr_flags; /* Trace options flags */
/*----- Other macros ------------------------------------------------------*/
/*----- Other macros ------------------------------------------------------*/
-#define QUICKRAND noise_timer(RAND_GLOBAL)
+#define QUICKRAND \
+ do { rand_quick(RAND_GLOBAL); noise_timer(RAND_GLOBAL); } while (0)
/*----- Key management ----------------------------------------------------*/
/*----- Key management ----------------------------------------------------*/