diff --git a/CHANGELOG.md b/CHANGELOG.md index bedd0ee6..0d7ddf13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,24 +4,71 @@
-## Unreleased (2024-09-29) +## Unreleased (2024-10-19)
### Packages +
+ +#### [@stdlib/random/shuffle](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/shuffle) + +
+ +
+ +##### Bug Fixes + +- [`93560b9`](https://github.com/stdlib-js/stdlib/commit/93560b988c750b47e68cf5a789cc5e9d74b8e2d8) - ensure correct seed validation [(#3007)](https://github.com/stdlib-js/stdlib/pull/3007) + +
+ + + +
+ +##### Closed Issues + +This release closes the following issue: + +[#2952](https://github.com/stdlib-js/stdlib/issues/2952) + +
+ + + +
+ +
+ + +
+
+ +### Closed Issues + +This release closes the following issue: + +[#2952](https://github.com/stdlib-js/stdlib/issues/2952) + +
+ + +
### Contributors -A total of 3 people contributed to this release. Thank you to the following contributors: +A total of 4 people contributed to this release. Thank you to the following contributors: - Jenish Thapa - Philipp Burckhardt +- RISHAV - Tirtadwipa Manunggal
@@ -34,6 +81,7 @@ A total of 3 people contributed to this release. Thank you to the following cont
+- [`93560b9`](https://github.com/stdlib-js/stdlib/commit/93560b988c750b47e68cf5a789cc5e9d74b8e2d8) - **fix:** ensure correct seed validation [(#3007)](https://github.com/stdlib-js/stdlib/pull/3007) _(by RISHAV)_ - [`2c4e5d8`](https://github.com/stdlib-js/stdlib/commit/2c4e5d824e0c5dc8fd536bf79ff565cee100ce46) - **build:** disable additional lint rule in TS tests _(by Philipp Burckhardt)_ - [`aad48ea`](https://github.com/stdlib-js/stdlib/commit/aad48eab1f19217854f4ffbfaed2a8be664b0f47) - **chore:** resolve lint errors _(by Philipp Burckhardt)_ - [`62bb1e0`](https://github.com/stdlib-js/stdlib/commit/62bb1e0759f54abf61b84bb48ebf74a97128f779) - **docs:** improve examples of `random/array` namespace _(by Tirtadwipa Manunggal, Philipp Burckhardt)_ diff --git a/CONTRIBUTORS b/CONTRIBUTORS index e7469a9e..9b6e69d1 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -2,7 +2,7 @@ # # Contributors listed in alphabetical order. -Aayush Khanna <96649223+aayush0325@users.noreply.github.com> +Aayush Khanna Adarsh Palaskar Aditya Sapra AgPriyanshu18 <113460573+AgPriyanshu18@users.noreply.github.com> @@ -28,6 +28,7 @@ EuniceSim142 <77243938+EuniceSim142@users.noreply.github.com> Frank Kovacs Golden Kumar <103646877+AuenKr@users.noreply.github.com> Gunj Joshi +Gururaj Gurram <143020143+gururaj1512@users.noreply.github.com> HarshaNP <96897754+GittyHarsha@users.noreply.github.com> Harshita Kalani Hridyanshu <124202756+HRIDYANSHU054@users.noreply.github.com> @@ -44,6 +45,7 @@ Justin Dennison Kaif Mohd Karthik Prakash <116057817+skoriop@users.noreply.github.com> Khaldon +Kohantika Nath <145763549+kohantikanath@users.noreply.github.com> Krishnendu Das <86651039+itskdhere@users.noreply.github.com> Lovelin <100030865+lovelindhoni@users.noreply.github.com> Manik Sharma @@ -94,6 +96,7 @@ Tudor Pagu <104032457+tudor-pagu@users.noreply.github.com> Tufailahmed Bargir <142114244+Tufailahmed-Bargir@users.noreply.github.com> Utkarsh Utkarsh Raj +UtkershBasnet <119008923+UtkershBasnet@users.noreply.github.com> Vaibhav Patel <98279986+noobCoderVP@users.noreply.github.com> Varad Gupta Xiaochuan Ye diff --git a/shuffle/lib/factory.js b/shuffle/lib/factory.js index e4a2599d..a18034f9 100644 --- a/shuffle/lib/factory.js +++ b/shuffle/lib/factory.js @@ -28,6 +28,7 @@ var deepCopy = require( '@stdlib/utils/copy' ); var floor = require( '@stdlib/math/base/special/floor' ); var randu = require( './../../base/mt19937' ).factory; var format = require( '@stdlib/string/format' ); +var hasOwnProp = require( '@stdlib/assert/has-own-property' ); var defaults = require( './defaults.json' ); var validate = require( './validate.js' ); @@ -63,7 +64,7 @@ function factory( config ) { throw err; } } - if ( config && config.seed ) { + if ( config && hasOwnProp( config, 'seed' ) ) { rand = randu({ 'seed': config.seed });