From eead224f10bab66f5ded341b07f69fdfa6c67e82 Mon Sep 17 00:00:00 2001 From: Diogo Canut Date: Thu, 8 Jun 2023 19:25:01 -0300 Subject: [PATCH] Add ported from http4s comment --- .../scala/cats/effect/std/SecureRandomCompanionPlatform.scala | 3 +++ 1 file changed, 3 insertions(+) diff --git a/std/jvm/src/main/scala/cats/effect/std/SecureRandomCompanionPlatform.scala b/std/jvm/src/main/scala/cats/effect/std/SecureRandomCompanionPlatform.scala index ba12ec727c..81ec16b59b 100644 --- a/std/jvm/src/main/scala/cats/effect/std/SecureRandomCompanionPlatform.scala +++ b/std/jvm/src/main/scala/cats/effect/std/SecureRandomCompanionPlatform.scala @@ -47,6 +47,9 @@ private[std] trait SecureRandomCompanionPlatform { def javaSecuritySecureRandom[F[_]: Sync]: F[SecureRandom[F]] = Sync[F].delay(unsafeJavaSecuritySecureRandom()) + /** + * Ported from https://github.com/http4s/http4s/. + */ private[effect] def unsafeJavaSecuritySecureRandom[F[_]: Sync](): SecureRandom[F] = { // This is a known, non-blocking, threadsafe algorithm def happyRandom = getInstance