Skip to content
This repository has been archived by the owner on Aug 7, 2022. It is now read-only.

Commit

Permalink
修复随机数的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Spedoske committed Jul 9, 2020
1 parent 5c67f34 commit 51aaa16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ archives:
darwin: MacOS
linux: Linux
windows: Windows
freebsd: Freebsd
386: x86
amd64: x64
files:
- ip.txt
checksum:
name_template: 'checksums.txt'
snapshot:
Expand Down
1 change: 1 addition & 0 deletions util.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ const failTime = 4
type CloudflareIPDataSet []CloudflareIPData

func initipEndWith() {
rand.Seed(time.Now().UnixNano())
ipEndWith = uint8(rand.Intn(254) + 1)
}

Expand Down

0 comments on commit 51aaa16

Please sign in to comment.