Replace Math.random() with ThreadLocalRandom.current().nextDouble()

MSAL

Replace Math.random() with ThreadLocalRandom.current().nextDouble() to reduce contention.

org.openrewrite.java.migrate.util.ReplaceMathRandomWithThreadLocalRandomRecipe
mod run . --recipe=org.openrewrite.java.migrate.util.ReplaceMathRandomWithThreadLocalRandomRecipe

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