scorex.utils.Random.scala Maven / Gradle / Ivy
package scorex.utils
import java.security.SecureRandom
object Random {
def randomBytes(howMany: Int = 32): Array[Byte] = {
val r = new Array[Byte](howMany)
new SecureRandom().nextBytes(r) //overrides r
r
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy