Skip to content

Bug 🐛 : The tnoodle-lib couldn't get SecureRandomInstance #84

@JessieOuO

Description

@JessieOuO

Description

Reproduction Steps:

  1. Launch the App
  2. Check the logs

Result:

2026-01-24 15:25:06.948  6536-6536  System.err              com.rickyhu.hushtimer.androidApp     W  SLF4J(W): No SLF4J providers were found.
2026-01-24 15:25:06.948  6536-6536  System.err              com.rickyhu.hushtimer.androidApp     W  SLF4J(W): Defaulting to no-operation (NOP) logger implementation
2026-01-24 15:25:06.948  6536-6536  System.err              com.rickyhu.hushtimer.androidApp     W  SLF4J(W): See https://www.slf4j.org/codes.html#noProviders for further details.
2026-01-24 15:25:07.079  6536-6676  Puzzle                  com.rickyhu.hushtimer.androidApp     E  Couldn't get SecureRandomInstance
                                                                                                    java.security.NoSuchProviderException: no such provider: SUN
                                                                                                    	at sun.security.jca.GetInstance.getService(GetInstance.java:83)
                                                                                                    	at sun.security.jca.GetInstance.getInstance(GetInstance.java:206)
                                                                                                    	at java.security.SecureRandom.getInstance(SecureRandom.java:494)
                                                                                                    	at org.worldcubeassociation.tnoodle.scrambles.Puzzle.getSecureRandom(Puzzle.java:115)
                                                                                                    	at org.worldcubeassociation.tnoodle.scrambles.Puzzle.<init>(Puzzle.java:111)
                                                                                                    	at org.worldcubeassociation.tnoodle.puzzle.CubePuzzle.<init>(CubePuzzle.java:113)
                                                                                                    	at org.worldcubeassociation.tnoodle.puzzle.ThreeByThreeCubePuzzle.<init>(ThreeByThreeCubePuzzle.java:24)
                                                                                                    	at java.lang.reflect.Constructor.newInstance0(Native Method)
                                                                                                    	at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
                                                                                                    	at org.worldcubeassociation.tnoodle.scrambles.LazySupplier.provideInstance(LazySupplier.java:28)
                                                                                                    	at org.worldcubeassociation.tnoodle.scrambles.LazySupplier.getInstance(LazySupplier.java:18)
                                                                                                    	at org.worldcubeassociation.tnoodle.scrambles.PuzzleRegistry.getScrambler(PuzzleRegistry.java:30)
                                                                                                    	at com.rickyhu.hushtimer.timer.data.ScrambleRepositoryImplKt.toScrambler(ScrambleRepositoryImpl.kt:31)
                                                                                                    	at com.rickyhu.hushtimer.timer.data.ScrambleRepositoryImpl.generateScramble(ScrambleRepositoryImpl.kt:13)
                                                                                                    	at com.rickyhu.hushtimer.timer.presentation.TimerViewModel$fetchScramble$2.invokeSuspend(TimerViewModel.kt:473)
                                                                                                    	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:34)

Expected Result:
It gets SecureRandomInstance normally.

Note:
This is related to issue: Couldn't get SecureRandomInstance.

Device

Model: Pixel 9 Pro XL (simulator)
OS: Android 16 (API 36.1)
Build : d5fb724

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions