diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/random_bugs/create_random_bugs.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/misc/random_bugs/create_random_bugs.go b/misc/random_bugs/create_random_bugs.go index 0657c808..ea8833ee 100644 --- a/misc/random_bugs/create_random_bugs.go +++ b/misc/random_bugs/create_random_bugs.go @@ -29,6 +29,17 @@ func DefaultOptions() Options { } } +func FillRepo(repo repository.ClockedRepo, bugNumber int) { + FillRepoWithSeed(repo, bugNumber, time.Now().UnixNano()) +} + +func FillRepoWithSeed(repo repository.ClockedRepo, bugNumber int, seed int64) { + options := DefaultOptions() + options.BugNumber = bugNumber + + CommitRandomBugsWithSeed(repo, options, seed) +} + func CommitRandomBugs(repo repository.ClockedRepo, opts Options) { CommitRandomBugsWithSeed(repo, opts, time.Now().UnixNano()) } |