View Single Post
  #6  
Old June 10th, 2005, 11:33 PM
Graeme Dice's Avatar

Graeme Dice Graeme Dice is offline
General
 
Join Date: Nov 2000
Posts: 3,013
Thanks: 17
Thanked 25 Times in 22 Posts
Graeme Dice is on a distinguished road
Default Re: Replay bug- again !

Quote:
Zooko said:
No offense, Johan K, but if your C code runs differently on different systems, then there must be a bug in your code, such as reading uninitialized memory, making unportable assumptions about the size of an integer, etc. It is traditional for C code to have lots of these bugs.
The classic replay bug was caused by this code:
(get_a_random_number() < get_a_random_number())
which is not evaluated in the same order by every compiler.
Reply With Quote