mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 16:07:15 +02:00
Create GenerateAllocationTokens nomulus tool command
This creates a specified number of tokens of a given schema, with a dryrun option to not persist them. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=181403775
This commit is contained in:
parent
ccbe958063
commit
646dcecd7e
8 changed files with 307 additions and 14 deletions
|
@ -73,13 +73,13 @@ public class DeterministicStringGenerator extends StringGenerator {
|
|||
}
|
||||
}
|
||||
|
||||
public DeterministicStringGenerator(@Named("alphabet") String alphabet, Rule rule) {
|
||||
public DeterministicStringGenerator(@Named("alphabetBase64") String alphabet, Rule rule) {
|
||||
super(alphabet);
|
||||
iterator = Iterators.cycle(charactersOf(alphabet));
|
||||
this.rule = rule;
|
||||
}
|
||||
|
||||
public DeterministicStringGenerator(@Named("alphabet") String alphabet) {
|
||||
public DeterministicStringGenerator(@Named("alphabetBase64") String alphabet) {
|
||||
this(alphabet, Rule.DEFAULT);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue