-
Notifications
You must be signed in to change notification settings - Fork 471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multiple paths is not random #342
Comments
I have a small test package main
import (
"fmt"
)
func main() {
paths := map[string]int{"a": 0, "b": 0, "c": 0}
for i := 0; i < 10000; i++ {
for p := range paths {
paths[p]++
break
}
}
fmt.Println(paths)
} Result is random but is not even, so it is unusable
|
tulequ
pushed a commit
to tulequ/local-path-provisioner
that referenced
this issue
Jun 18, 2023
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This issue was closed because it has been stalled for 5 days with no activity. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have the problem that paths is not random
When I check source, I see below
It wasn't at all? Is anything I am missing?
local-path-provisioner/provisioner.go
Lines 206 to 210 in 58eb292
The text was updated successfully, but these errors were encountered: