Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 67f6eb2 + 4e20697 commit 51926f4Copy full SHA for 51926f4
22_go-routines/06_race-condition/main.go
@@ -19,6 +19,7 @@ func main() {
19
}
20
21
func incrementor(s string) {
22
+ rand.Seed(time.Now().UnixNano())
23
for i := 0; i < 20; i++ {
24
x := counter
25
x++
0 commit comments