Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(random): ensure correct seed initialization with falsy values
The previous implementation used a direct property check (`config.seed`), which could inadvertently treat falsy values like `0` as missing, leading to incorrect random seed initialization. Changed the condition to explicitly check for the presence of the `seed` property using `Object.prototype.hasOwnProperty.call()`. This update ensures that seed initialization handles falsy but valid seed values correctly. Resolves #2952. This pull request addresses the bug where setting `seed=0` leads to non-deterministic behavior. No related issues. No questions for reviewers. No additional information relevant to this pull request. - [x] Read, understood, and followed the [contributing guidelines][contributing]. --- @stdlib-js/reviewers [contributing]: https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md
- Loading branch information