]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/irc-login.c
Use srand()/rand() instead of srandom()/random(); seems to be more portable
[ngircd-alex.git] / src / ngircd / irc-login.c
index 2e99d66eeade7dfa36c25b6dd36f88a9c94f1c1e..067703a81f64db01bb1a5f30d8b60a73d3f48127 100644 (file)
@@ -273,7 +273,7 @@ IRC_NICK( CLIENT *Client, REQUEST *Req )
 
 #ifndef STRICT_RFC
                        if (Conf_AuthPing) {
-                               Conn_SetAuthPing(Client_Conn(Client), random());
+                               Conn_SetAuthPing(Client_Conn(Client), rand());
                                IRC_WriteStrClient(Client, "PING :%ld",
                                        Conn_GetAuthPing(Client_Conn(Client)));
                                LogDebug("Connection %d: sent AUTH PING %ld ...",