THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 21/06/2012 at 15:27, xxxxxxxx wrote:
Cinema 4D Version: R13
Platform: Windows ; Mac ;
Language(s) : C++ ;
Would you expect the SDK Random() class to generate an identical series of pseudo-random numbers on a PC and on a Mac, given the same seed?
In one of my plugins there's a problem in that initialising Random() and then calling Random::Get11() once each frame seems to generate different numbers on a PC compared to a Mac. Most of the time this doesn't matter, but it does if I try to render an animation over NET render, because the frames rendered by the PC on the network don't use the same series of numbers as those rendered by the Mac. (I should say this is a very small network with a server and two clients, one PC and one Mac.)
As far as I can tell, the PC and Mac versions are identical - they use the same code base, so there's no code difference between them - and oddly it seems that while the first four numbers in the sequence are always the same on both machines, after that they differ, but are consistent on each individual machine.
If this is a known issue then I can try another random number generator library but if the series should be the same, then I guess it's my code that's at fault.
Any help would be most welcome.