diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2021-12-09 23:23:46 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2021-12-21 02:13:24 +0530 |
commit | 16392b75814a71a4d78b3598cd3364baeb0b446e (patch) | |
tree | 2ca56bce0682664cf0bfc7bee0c58511e40907b8 /passgen/diceware/api/diceware.api | |
parent | 67f8eb840425ce287041d5ac5094c7831779f4d7 (diff) |
diceware: add Die class and tests
Diffstat (limited to 'passgen/diceware/api/diceware.api')
-rw-r--r-- | passgen/diceware/api/diceware.api | 10 |
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 +} + |