tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: [OT] Tomcat 6 does not respond or freeze after startup
Date Thu, 05 Aug 2010 16:05:57 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chuck,

On 8/5/2010 11:54 AM, Caldarale, Charles R wrote:
>> From: Christopher Schultz [mailto:chris@christopherschultz.net]
>> Subject: Re: [OT] Tomcat 6 does not respond or freeze after startup
>>
>> Yup. I think Microsoft's PRNG is implemented something like this:
>>
>> long int random() {
>>   return time() % 2;
>> }
>>
>> Super efficient!
> 
> I think you left out the requisite buffer overflow built into every Windows API...

How about this:

long int random() {
  return *(time()) % 2;
}
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxa4WUACgkQ9CaO5/Lv0PBpngCgnBxEAtdTpdOTWvZ0BipTHjKZ
Li0AnR60qrHkx/UDxjHZXziqshhMQMp+
=CXa9
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message