Doesn't Kotlin have a Cryptographically Secure RNG (CSPRNG) like Java's SecureRandom or am I just missing something here?

Reply to this note

Please Login to reply.

Discussion

What's wrong with just using java.security.SecureRandom?

idk, are there any cons of using Java classes/libraries in Kotlin applications? They both run on the JVM so I guess there shouldn't be any difference really? Keep in mind that I'm a Kotlin n00b, I've basically been working with Java only (Spring mostly) the last couple of years

I use the Java libs while writing in Clojure. The interop is very easy and reliable.