X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Fconf.c;h=d337947d9104eac1a9ef2a7da45b9132aef06f22;hp=9c2c912f1d126ee2282653c7ad85d9b2e9f1f91c;hb=17589534d0ccff05463910d1f0ba673d7d1630fd;hpb=ea26fd2840f6c7f286407e86f832d6ec5e93eeeb;ds=sidebyside diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c index 9c2c912f..d337947d 100644 --- a/src/ngircd/conf.c +++ b/src/ngircd/conf.c @@ -533,7 +533,11 @@ Conf_UnsetServer( CONN_ID Idx ) /* "Short" connection, enforce "ConnectRetry" * but randomize it a little bit: 15 seconds. */ Conf_Server[i].lasttry = +#ifdef HAVE_ARC4RANDOM + t + (arc4random() % 15); +#else t + rand() / (RAND_MAX / 15); +#endif } } }