From: divverent Date: Thu, 28 May 2009 10:49:43 +0000 (+0000) Subject: s/random()/rand()/, sorry X-Git-Tag: xonotic-v0.1.0preview~1626 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=740a7f1f673fe6f3647ed80520e6f14243d3b912;p=xonotic%2Fdarkplaces.git s/random()/rand()/, sorry git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8993 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/host_cmd.c b/host_cmd.c index adceca5e..1d474610 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -2399,7 +2399,7 @@ void Host_Rcon_f (void) // credit: taken from QuakeWorld { char buf[1500]; char argbuf[1500]; - dpsnprintf(argbuf, sizeof(argbuf), "%ld.%06d %s", (long) time(NULL), (int) (random() % 1000000), Cmd_Args()); + dpsnprintf(argbuf, sizeof(argbuf), "%ld.%06d %s", (long) time(NULL), (int) (rand() % 1000000), Cmd_Args()); memcpy(buf, "\377\377\377\377srcon HMAC-MD4 TIME ", 24); if(HMAC_MDFOUR_16BYTES((unsigned char *) (buf + 24), (unsigned char *) argbuf, strlen(argbuf), (unsigned char *) rcon_password.string, strlen(rcon_password.string))) {