Skip to content

Commit

Permalink
test: small cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Allain Magyar <allain.magyar@iohk.io>
  • Loading branch information
amagyar-iohk committed Mar 28, 2024
1 parent 971446c commit c97875c
Showing 1 changed file with 0 additions and 14 deletions.
Expand Up @@ -3,20 +3,6 @@ package io.iohk.atala.prism.utils
import java.security.SecureRandom

object Utils {
/**
static generateNonce(length: number): string {
let result = ""
while (result.length < length) {
const byte = crypto.randomBytes(1)[0]
if (byte >= 250) {
continue
}
const randomDigit = byte % 10
result += randomDigit.toString()
}
return result
}
*/
fun generateNonce(length: Int): String {
var result = ""
val secureRandom = SecureRandom()
Expand Down

0 comments on commit c97875c

Please sign in to comment.