Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(random): handle seed initialization correctly
The previous implementation used a direct property check (`config.seed`), which could inadvertently treat falsy values like "0" as missing. This caused incorrect random seed initialization in some cases. Changed the condition to explicitly check for the presence of the `seed` property using `Object.prototype.hasOwnProperty.call()`. Now, seed initialization handles falsy but valid seed values correctly.
- Loading branch information