File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
std/shared/src/main/scala/cats/effect/std Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,9 @@ object SecureRandom extends SecureRandomCompanionPlatform {
124124 }
125125
126126 /**
127+ * Builds a `SecureRandom[F]` value for effect types that are [[cats.effect.kernel.Sync ]] and
128+ * initializes random state using the same effect type
129+ *
127130 * On the JVM, delegates to [[java.security.SecureRandom ]].
128131 *
129132 * In browsers, delegates to the
@@ -139,6 +142,10 @@ object SecureRandom extends SecureRandomCompanionPlatform {
139142 override def javaSecuritySecureRandom [F [_]: Sync ]: F [SecureRandom [F ]] =
140143 javaSecuritySecureRandomGeneric
141144
145+ /**
146+ * Builds a `SecureRandom[G]` value for effect types that are [[cats.effect.kernel.Sync ]] but
147+ * initializes random state using another effect constructor
148+ */
142149 override def javaSecuritySecureRandomGeneric [F [_]: Sync , G [_]: Sync ]: F [SecureRandom [G ]] =
143150 super .javaSecuritySecureRandomGeneric[F , G ]
144151
You can’t perform that action at this time.
0 commit comments