Find kotlin.random.Random.Default references

Proprietary

kotlin.random.Random.Default delegates to a platform default RNG that on JVM is ThreadLocalRandom — not cryptographically secure. For tokens, session IDs, salts, etc. use java.security.SecureRandom.

org.openrewrite.kotlin.security.FindKotlinRandomForSecurity$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.security.FindKotlinRandomForSecurity$KtRecipe'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.