Skip to content

fix: initialize Request::sortMode (was uninitialized) - #39

Open
weasel0x00 wants to merge 1 commit into
Rhoban:masterfrom
weasel0x00:fix/init-sortmode
Open

fix: initialize Request::sortMode (was uninitialized)#39
weasel0x00 wants to merge 1 commit into
Rhoban:masterfrom
weasel0x00:fix/init-sortmode

Conversation

@weasel0x00

Copy link
Copy Markdown

Request::sortMode was never initialized in the constructor, so the default placement path read an indeterminate value. This initializes it to REQUEST_SINGLE_SORT.

Standalone one-line bug fix — safe to merge on its own. (Also included in the larger #38 series, but pulled out here so it can be taken independently.)

sortMode was never set in the constructor, so a run without -S read
indeterminate stack memory and could nondeterministically take the
multiple-sort (time-seeded shuffle) path. Default it to REQUEST_SINGLE_SORT
so single-sort runs are reproducible.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant