File tree 1 file changed +7
-0
lines changed
std/shared/src/main/scala/cats/effect/std 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 {
124
124
}
125
125
126
126
/**
127
+ * Builds a `SecureRandom[F]` value for effect types that are [[cats.effect.kernel.Sync ]] and initializes random
128
+ * state using the same effect type
129
+ *
127
130
* On the JVM, delegates to [[java.security.SecureRandom ]].
128
131
*
129
132
* In browsers, delegates to the
@@ -139,6 +142,10 @@ object SecureRandom extends SecureRandomCompanionPlatform {
139
142
override def javaSecuritySecureRandom [F [_]: Sync ]: F [SecureRandom [F ]] =
140
143
javaSecuritySecureRandomGeneric
141
144
145
+ /**
146
+ * Builds a `SecureRandom[G]` value for effect types that are [[cats.effect.kernel.Sync ]] but initializes random
147
+ * state using another effect constructor
148
+ */
142
149
override def javaSecuritySecureRandomGeneric [F [_]: Sync , G [_]: Sync ]: F [SecureRandom [G ]] =
143
150
super .javaSecuritySecureRandomGeneric[F , G ]
144
151
You can’t perform that action at this time.
0 commit comments