Inspectopedia Help

Using a fixed seed with SecureRandom

Using a fixed seed with SecureRandom

Specifying a fixed seed will cause the instance to return a predictable sequence of numbers. This may be useful for testing but it is not appropriate for secure use.

Issue id: SecureRandom

https://goo.gle/SecureRandom

https://developer.android.com/reference/java/security/SecureRandom.html

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for Android 2023.3, Qodana for JVM 2023.3

Plugin:

Android, 2022.3.1 Beta 2

Last modified: 13 July 2023