aboutsummaryrefslogtreecommitdiff
path: root/bank/src/test/kotlin/helpers.kt
diff options
context:
space:
mode:
Diffstat (limited to 'bank/src/test/kotlin/helpers.kt')
-rw-r--r--bank/src/test/kotlin/helpers.kt12
1 files changed, 3 insertions, 9 deletions
diff --git a/bank/src/test/kotlin/helpers.kt b/bank/src/test/kotlin/helpers.kt
index d78817b6..bb720197 100644
--- a/bank/src/test/kotlin/helpers.kt
+++ b/bank/src/test/kotlin/helpers.kt
@@ -481,12 +481,6 @@ fun HttpRequestBuilder.pwAuth(username: String? = null) {
/* ----- Random data generation ----- */
-fun randBase32Crockford(length: Int) = Base32Crockford.encode(randBytes(length))
-
-fun randIncomingSubject(reservePub: EddsaPublicKey): String {
- return "$reservePub"
-}
-
-fun randOutgoingSubject(wtid: ShortHashCode, url: ExchangeUrl): String {
- return "$wtid $url"
-} \ No newline at end of file
+fun randBase32Crockford(length: Int) = Base32Crockford.encode(ByteArray(length).rand())
+fun randIncomingSubject(reservePub: EddsaPublicKey): String = "$reservePub"
+fun randOutgoingSubject(wtid: ShortHashCode, url: ExchangeUrl): String = "$wtid $url" \ No newline at end of file