From ea96b3d9db3b66fbcb25ec24ee202beee3f00b56 Mon Sep 17 00:00:00 2001 From: Arman Bilge Date: Thu, 24 Mar 2022 19:03:49 +0000 Subject: [PATCH] Fix import shadowing --- std/js/src/main/scala/cats/effect/std/SecureRandom.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/std/js/src/main/scala/cats/effect/std/SecureRandom.scala b/std/js/src/main/scala/cats/effect/std/SecureRandom.scala index d9d6a80304..dab17ae375 100644 --- a/std/js/src/main/scala/cats/effect/std/SecureRandom.scala +++ b/std/js/src/main/scala/cats/effect/std/SecureRandom.scala @@ -16,10 +16,9 @@ package cats.effect.std -import java.util.Random import scala.scalajs.js -private final class SecureRandom extends Random { +private final class SecureRandom extends java.util.Random { private val nextBytes: Int => js.typedarray.Int8Array = if (js.typeOf(js.Dynamic.global.crypto) != "undefined") // browsers