There is no secret that following code:
srand(0);
int result = rand();
will provide different result on Windows and Linux. Also this code will provide identical result for different version of Windows (at least in the range winXP-win10). So the question is: what is the exactly algorithm of RNG is used on Windows and how to implement it on C/C++ as platform-independent solution?
UPDATE. To everyone: I've asked the specific question and I want to get a specific answer. If you don't know how to/don't want to/can't help - just go away. I'dont need your advices about anything else.
Aucun commentaire:
Enregistrer un commentaire