I have cards game and getting comment from players that cards are not dealt randomly anymore.
I use simple Math.random, I also do untyped __cpp__('srand(time(NULL))'); on the app launch.
Everything seems pretty random on other platforms and my test devices.
Does anyone has any similar problems?
@singmajesty, it’s always different for me, increasing as it has to. @Vega, Math.random is random for me and 99% of the players, only few have this problem.
My only guess, their devices are hacked.
Unfortunately, those few players complain, but can’t debug for me.
i recently had this issue on my android device ( Moto Z2 ):
04-23 10:49:32.513 19263 19289 I trace : Main.hx:37: time(NULL)=1556009372
04-23 10:49:32.513 19263 19289 I trace : Main.hx:38: Std.random(1000)=266
04-23 10:49:32.513 19263 19289 I trace : Main.hx:39: Math.random()=0.647641502087936
…
04-23 10:49:54.143 19367 19393 I trace : Main.hx:37: time(NULL)=1556009394
04-23 10:49:54.143 19367 19393 I trace : Main.hx:38: Std.random(1000)=266
04-23 10:49:54.143 19367 19393 I trace : Main.hx:39: Math.random()=0.647641502087936
This happend only in one of my apps, so i tested a bit and found that <architecture name="arm64" /> caused it. Without that line, it works fine. I hope this will help