Commit d576418
authored
Seeds math/rand in main() for the "memoryless" package (#14)
* Seeds math/rand before calling memoryless package
https://pkg.go.dev/math/rand#Seed
* Reinstalls ca-certificates before building anything
* Runs apt-get using sudo
* Uses Focal as dist for Travis, and does apt-get update
* Moves apt install to before_script section
* Updates to Go 1.16 + uses Travis apt addon
* Sets waittime to 3s for unit test of main()
* Updates Go to 1.16 in Docker image
Also, reinstalls ca-certificates package.
* Sets GO111MODULE=auto in Docker build
* Adds comment about rand.Seed() is being called.
* Enables Go modules.1 parent 67d68b1 commit d576418
6 files changed
Lines changed: 449 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
3 | 13 | | |
4 | 14 | | |
5 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments