Embarrassing bug in variation codes
Posted: Tue Jan 15, 2008 5:37 pm
Have you ever noticed that sometimes when you download a cfdg file from the gallery and use the same variation that the author used when they uploaded you get a different image? But most of the time the variation looks the same. Or maybe you see this problem most of the time and only occasionally do you see a match between your rendered variation and the author's uploaded variation.
Well we did, but we just scratched out heads and assumed that the author had used an older version of Context Free. But it turns out that it is a little-endian dependence in the code that extracts entropy from the cfdg file to salt the random number seed. So the variations seen by PPC Mac users (big-endian) is different from the variations seen by Windows and Intel Mac users (little-endian).
So now I have to pick either big-endian or little-endian variations as the true variation. I think that most Context Free users are on little-endian machines. But I thought that I would check with a forum poll. Please vote for your endianness.
Well we did, but we just scratched out heads and assumed that the author had used an older version of Context Free. But it turns out that it is a little-endian dependence in the code that extracts entropy from the cfdg file to salt the random number seed. So the variations seen by PPC Mac users (big-endian) is different from the variations seen by Windows and Intel Mac users (little-endian).
So now I have to pick either big-endian or little-endian variations as the true variation. I think that most Context Free users are on little-endian machines. But I thought that I would check with a forum poll. Please vote for your endianness.