]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib/randgen - always print the DOVECOT_SRAND seed, not just on fatals
authorPhil Carmody <phil@dovecot.fi>
Tue, 30 Jan 2018 11:47:18 +0000 (13:47 +0200)
committerPhil Carmody <phil.carmody@dovecot.fi>
Wed, 31 Jan 2018 10:14:26 +0000 (12:14 +0200)
Devs might want to reproduce "working" pathways that show slight
misbehaviour, not just crashing ones. The later print upon a crash/
fatal is left in, as the heads of logs can become separated from the
tails of logs quite easily, it's only one extra line per run.

Signed-off-by: Phil Carmody <phil@dovecot.fi>
src/lib/randgen.c

index f5aaf36862c0e92e6da322c37e19fa9f286a9f43..77b4422ed17b9520a3803d9184d7c6bfbfbc33a4 100644 (file)
@@ -15,7 +15,7 @@ static uint32_t kiss_z, kiss_w, kiss_jsr, kiss_jcong;
 static void
 kiss_init(unsigned int seed)
 {
-       /* i_info("Random numbers are PRNG using kiss, seeded with %u", seed); */
+       i_info("Random numbers are PRNG using kiss, as per DOVECOT_SRAND=%u", seed);
        kiss_seed = seed;
        kiss_jsr = 0x5eed5eed; /* simply musn't be 0 */
        kiss_z = 1 ^ (kiss_w = kiss_jcong = seed); /* w=z=0 is bad, see Rose */