Single method to test performance of receiving a GiftWrap.

This commit is contained in:
Vitor Pamplona
2023-08-18 11:52:54 -04:00
parent 41b93e3860
commit 8dbded0185
3 changed files with 103 additions and 0 deletions
@@ -24,6 +24,11 @@ object CryptoUtils {
private val random = SecureRandom()
private val h02 = Hex.decode("02")
fun clearCache() {
sharedKeyCache04.evictAll()
sharedKeyCache24.evictAll()
}
fun randomInt(bound: Int): Int {
return random.nextInt(bound)
}