Skip to content

Sanitize sumo_seed to 32-bit integer to prevent crash#238

Merged
LucasAlegre merged 2 commits intoLucasAlegre:mainfrom
bsagarzazu:patch-1
Jan 30, 2026
Merged

Sanitize sumo_seed to 32-bit integer to prevent crash#238
LucasAlegre merged 2 commits intoLucasAlegre:mainfrom
bsagarzazu:patch-1

Conversation

@bsagarzazu
Copy link
Contributor

I am using SUMO-RL with RL Baselines3 Zoo, and the randomly generated seeds are often 64-bit integers. This causes SUMO to crash because it expects a 32-bit signed integer.
This change sanitizes sumo_seed with a bitmask to avoid this crash without compromising reproducibility.

I am using SUMO-RL with RL Baselines3 Zoo, and the randomly generated seeds are often 64-bit integers. This causes SUMO to crash because it expects a 32-bit signed integer. This change sanitizes sumo_seed with a bitmask to avoid this crash without compromising reproducibility.
@LucasAlegre LucasAlegre self-assigned this Jan 29, 2026
@LucasAlegre LucasAlegre merged commit 460ab06 into LucasAlegre:main Jan 30, 2026
7 checks passed
@bsagarzazu bsagarzazu deleted the patch-1 branch January 30, 2026 18:27
@bsagarzazu bsagarzazu restored the patch-1 branch January 30, 2026 18:27
@bsagarzazu bsagarzazu deleted the patch-1 branch January 30, 2026 18:29
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.

2 participants