Commit 8b3e37a
committed
Return copy-backed Binary from Int96Generator.nextValue
Pre-PR, Int96Generator.nextBinaryValue went through
FixedBinaryTestUtils.getFixedBinary which returned a constant-backed
Binary. The refactor switched to Binary.fromReusedByteArray over the
shared scratch buffer, so successive nextValue() calls mutate Binaries
returned by earlier calls -- breaking any caller that retains results
(e.g. RandomValues.wrapSorted).1 parent 61bc607 commit 8b3e37a
1 file changed
Lines changed: 2 additions & 1 deletion
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
236 | 237 | | |
237 | 238 | | |
238 | 239 | | |
239 | | - | |
| 240 | + | |
240 | 241 | | |
241 | 242 | | |
242 | 243 | | |
| |||
0 commit comments