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
22}22}
23 23
24func baseSeed() uint64 {24func baseSeed() uint64 {
25 if *startSeed != 0 {25 if flags.startSeed != 0 {
26 return *startSeed26 return flags.startSeed
27 }27 }
28 28
29 return uint64(time.Now().UnixNano()) + uint64(atomic.AddUint32(&seedCounter, 1))29 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