dimanche 17 septembre 2017

Does nodejs server and cocos2dx client use same rand

I have a question about rand generation. I am writing a game, which server is use node js, and client is use cocos2dx c++. For anti-cheat from client. Every round , server will create a seed ,and send it to client. Then server and client use the same seed to generate rand numbers. My question is : 1 .Could it will generate rand number in same sequence in deference language(server js, client c++)? 2. To client ,because cocos2dx is on deference platform. Does android app and ios app will generate rand number in same sequence? I do not sure the impl of cocos2dx in rand is the same .

Thanks a lot.




Aucun commentaire:

Enregistrer un commentaire