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

scalajs-java-securerandom-sjs1-2-13

JSON →
library1.0.0javamavenunverified

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.13</artifactId> <version>1.0.0</version> </dependency>
INSTALL
IMPORT
SIG · SCALAJS-JAVA-SECUR
S
scalajs-java-securerandom-sjs1-2-13
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 random bytes using SecureRandom.

import java.security.SecureRandom; public class Example { public static void main(String[] args) { SecureRandom random = new SecureRandom(); byte[] bytes = new byte[16]; random.nextBytes(bytes); System.out.println("Random bytes generated"); } }
Debug
Known issues
gotchaOnly works in Scala.js environment; not for JVM.
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
14 hits · last 30 days
node
14
Resources
scalajs-java-securerandom-sjs1-2-13 — mvn dependency:get scalajs-java-securerandom-sjs1-2-13 · libregistry