fix: raise ValueError when provided seed is out-of-bounds (#21029)
* fix: crash when provided seed is out-of-bounds
* fix: update handling of invalid seeds via PL_GLOBAL_SEED
* fix: update test for invalid env var seed
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix: typo
* Apply suggestions from code review
Co-authored-by: Deependu <deependujha21@gmail.com>
* changelog
* update
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Deependu <deependujha21@gmail.com>