Skip to content

Commit

Permalink
Add ported from http4s comment
Browse files Browse the repository at this point in the history
  • Loading branch information
diogocanut committed Jun 8, 2023
1 parent 4b4ded3 commit eead224
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eead224

Please sign in to comment.