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 Apr 25, 2024
1 parent 5a38513 commit 12210ad
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
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 12210ad

Please sign in to comment.