History

Use single global for flags

Gregory Petrosyan committed 6 years ago

Commit e5424da1 parent 8f0b7cb5 files · +38 −23Browse files

Showing the changes to data.go (1 of 5 files). Show all

Unified · Split

data.go+2−2
@@ -22,8 +22,8 @@ type bitStream interface { · 21 unmodified lines
2222 }
2323
2424 func baseSeed() uint64 {
25− if *startSeed != 0 {
26− return *startSeed
25+ if flags.startSeed != 0 {
26+ return flags.startSeed
2727 }
2828
2929 return uint64(time.Now().UnixNano()) + uint64(atomic.AddUint32(&seedCounter, 1))

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t