make note about non-determism
This commit is contained in:
parent
1b552ffc9a
commit
c61bae984c
|
@ -81,7 +81,7 @@ func drawFromDistributionWithReplacement(d pplKnownDistrib, r src) int64 {
|
|||
for i, p := range d {
|
||||
sum += p
|
||||
if pp <= sum {
|
||||
return int64(i)
|
||||
return int64(i) // this introduces some non-determinism, as order of maps in go isn't guaranteed
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user