aboutsummaryrefslogtreecommitdiff
path: root/passgen/diceware/api
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2021-12-09 23:23:46 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2021-12-21 02:13:24 +0530
commit16392b75814a71a4d78b3598cd3364baeb0b446e (patch)
tree2ca56bce0682664cf0bfc7bee0c58511e40907b8 /passgen/diceware/api
parent67f8eb840425ce287041d5ac5094c7831779f4d7 (diff)
diceware: add Die class and tests
Diffstat (limited to 'passgen/diceware/api')
-rw-r--r--passgen/diceware/api/diceware.api10
1 files changed, 10 insertions, 0 deletions
diff --git a/passgen/diceware/api/diceware.api b/passgen/diceware/api/diceware.api
new file mode 100644
index 00000000..8d16ae8f
--- /dev/null
+++ b/passgen/diceware/api/diceware.api
@@ -0,0 +1,10 @@
+public final class dev/msfjarvis/aps/passgen/diceware/Die {
+ public fun <init> (ILdev/msfjarvis/aps/passgen/diceware/RandomIntGenerator;)V
+ public final fun roll ()I
+ public final fun rollMultiple (I)I
+}
+
+public abstract interface class dev/msfjarvis/aps/passgen/diceware/RandomIntGenerator {
+ public abstract fun get (Lkotlin/ranges/IntRange;)I
+}
+