Skip to content

Conversation

@themuffinator
Copy link
Owner

Summary

  • add bounds checking to G_SelectRandomTarget to log and reject invalid random indices
  • update target selection test to cover invalid RNG results while ensuring highest index can be chosen

Testing

  • g++ -std=c++17 src/tests/g_utils_target_selection_test.cpp -o /tmp/g_utils_target_selection_test && /tmp/g_utils_target_selection_test

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants