Blockland Forums > Modification Help
getRandom returning different results on mac and pc
Slicks555:
--- Quote from: Ipquarx on May 19, 2012, 09:56:49 PM ---Except that's slow and off topic.
Can someone please tell me why they return different results?
--- End quote ---
Not really.. If you weren't aware, Torque is REALLY slow. Doing all calculations in an external program relieves Torque of a heavy load and the <1ms lag time to transmit the message to a local server is far superior. Don't judge something until you've tried it.
Brian Smithers:
I've tried making a python RPG. it was quite bitchy but it was much faster.
M:
Port told you why and you said NO THAT CAN'T BE IT
It returns different results because the algorithm is different, that's the only explanation. There's a good chance that it's not even written directly into Torque, and is simply using the host OS' generator, or some minor difference in execution is causing it. No, you can't "fix" it, it's an issue with the engine. If you don't like it, write your own generator in Torque or set it up as a TCP offloader. Look at your code. No, using a TCP offload is not going to make it "slow" unless you are dumb enough to be expecting it to return at execution time. Read up on asynchronous IO and you'll be fine. Now look back to me. The code is now diamonds.
xXBeibsFan119Xx:
Why do you want unrandom randomness?
Ipquarx:
--- Quote from: M on May 20, 2012, 07:17:21 AM ---It returns different results because the algorithm is different, that's the only explanation.
--- End quote ---
M, I already tested that.
That isn't the problem.
That's why I posted the help topic.