This commit is contained in:
@@ -20,7 +20,7 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("com.infendro:prng:1.3.0")
|
||||
implementation("com.infendro:prng:1.3.1")
|
||||
}
|
||||
```
|
||||
|
||||
@@ -29,7 +29,7 @@ dependencies {
|
||||
```kotlin
|
||||
fun main() {
|
||||
// create PRNG instance
|
||||
val rng = CSPRNG.HMAC(`SHA-256`)
|
||||
val rng = CSPRNG.HMAC(`SHA-256`())
|
||||
|
||||
// seed PRNG to receive deterministic numbers
|
||||
rng.seed(/* seed */)
|
||||
|
||||
Reference in New Issue
Block a user