Commit 618bae2
fix: ensure deterministic probation list encoding (#4786)
Map iteration in Go is non-deterministic. ConvertProbationListFromState
iterated over ProbationInfo map directly, producing non-deterministic
output ordering. This fix sorts the map keys before iteration to ensure
consistent, deterministic encoding.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 7812bdc commit 618bae2
1 file changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
54 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
55 | 63 | | |
56 | 64 | | |
57 | 65 | | |
| |||
0 commit comments