Giter Club home page Giter Club logo

Comments (9)

m-i-n-a-r avatar m-i-n-a-r commented on May 18, 2024 2

I recreated it successfully on a Galaxy A32 running android 13, while I can't recreate it on my Oneplus 7 pro, even after reinstalling your exact same version from f-droid. The only possible explanation is that I have some fix in my rom that other devices haven't. Anyway, as I said, I'm going to use the "standard" Random and nextInt() function, just to make sure this is fixed :)

from randomix.

m-i-n-a-r avatar m-i-n-a-r commented on May 18, 2024 1

Sorry for the late reply! I didn't know about this issue and i agree, I should try to fix it. I'll update the issue as soon as i work on it 😄

from randomix.

m-i-n-a-r avatar m-i-n-a-r commented on May 18, 2024 1

Hi again. After a (big) pause, I'm working on this bug and more features. At the moment, I can't recreate it on my side (Android 13). Is that normal? What are the step to recreate it?

from randomix.

gandro avatar gandro commented on May 18, 2024 1

Hi, so I am still able to reproduce on my Samsung S20 FE with Android 13 (edit: originally we discovered this on a Fairphone 4 with Android 12). Here is a screen recording:

Screen_Recording_Randomix.mp4

Note that after restarting the app, the sequence generated for the roulette is identical, i.e. "9, 3, 18, 17, 9". This is different from other random functions in the app (e.g. dice rolls) which always generate new (i.e. unpredictable) sequences after an app restart.

from randomix.

m-i-n-a-r avatar m-i-n-a-r commented on May 18, 2024 1

Done in aa642a1 it should work properly now. I still have a translation to wait and a couple fixes left, but I should release the update quite soon (finally 😆)

from randomix.

m-i-n-a-r avatar m-i-n-a-r commented on May 18, 2024

That's a real mistery! I did the same procedure on my Oneplus 7 Pro running an Android 13 rom, and for 4 times, I had different sequences. This means that the bug only affects certain devices? This makes no sense since we're running the same android version. I'll try to recreate it on other test devices (Android 9, 11 and 12), let's see what happens 😕
Of course, this is a bug and I have to fix it nevertheless.

from randomix.

gandro avatar gandro commented on May 18, 2024

That is odd indeed! I don't know much about modern Android development, might it be an issue that is fixed by recompilation using a newer SDK? I'm running the v2.5 build from FDroid - perhaps recompiling it with a newer SDK might include a version of java.util.concurrent.ThreadLocalRandom which has the bugfix already applied?

Edit: At least the Kotlin commit seems to imply that: JetBrains/kotlin@a2e8ed0

from randomix.

m-i-n-a-r avatar m-i-n-a-r commented on May 18, 2024

Yep, it makes sense. Anyway, just to make sure this problem is fixed, I'm looking for an alternative approach 😄

from randomix.

gandro avatar gandro commented on May 18, 2024

Awesome, thank you!

from randomix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.