Registry / crypto / scalajs-java-securerandom-sjs1-2-12

scalajs-java-securerandom-sjs1-2-12

JSON →
library1.0.0javamavenunverified

Provides a Scala.js implementation of java.security.SecureRandom for use in Scala.js projects.

<dependency> <groupId>org.scala-js</groupId> <artifactId>scalajs-java-securerandom_sjs1_2.12</artifactId> <version>1.0.0</version> </dependency>
INSTALL
IMPORT
SIG · SCALAJS-JAVA-SECUR
S
scalajs-java-securerandom-sjs1-2-12
cryptojavav1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SecureRandom
java.security.SecureRandom

Generates a random integer using SecureRandom.

import java.security.SecureRandom; object Quickstart { def main(args: Array[String]): Unit = { val random = new SecureRandom() println(random.nextInt()) } }
Debug
Known issues
gotchaThis package is specific to Scala.js and may not work in JVM environments.
fix
Use the standard JVM SecureRandom for JVM projects.
affects: all
Upgrade
Version history
1.0.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
Resources
scalajs-java-securerandom-sjs1-2-12 — mvn dependency:get scalajs-java-securerandom-sjs1-2-12 · libregistry