Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Jan 3, 2025
1 parent 1563e6b commit 754a263
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ A total of 2 people contributed to this release. Thank you to the following cont

<details>

- [`8c7dff3`](https://github.com/stdlib-js/stdlib/commit/8c7dff311a96451ecf52d7a08e17fd03bdf4a300) - **refactor:** move variable declaration _(by Athan Reines)_
- [`b082d29`](https://github.com/stdlib-js/stdlib/commit/b082d299748392a05be50b43351af6ac0cb7d418) - **fix:** update include paths and reorder includes _(by Athan Reines)_
- [`3c8a4d5`](https://github.com/stdlib-js/stdlib/commit/3c8a4d5c5d97979206090197ca00f39de3d19f06) - **docs:** update note _(by Athan Reines)_
- [`ee0c409`](https://github.com/stdlib-js/stdlib/commit/ee0c4092ad6995e68d53c384e6ef75d87bf36ac8) - **docs:** update note _(by Athan Reines)_
Expand Down
2 changes: 1 addition & 1 deletion base/uniform/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@
* stdlib_base_random_randu_free( randu, -10.0, 10.0 );
*/
double stdlib_base_random_uniform( struct BasePRNGObject *randu, const double a, const double b ) {
double r;
if ( randu == NULL ) {
return 0.0 / 0.0; // NaN
}
double r;
randu->prng->normalized( randu, &r );
return ( b*r ) + ( (1.0-r)*a );
}

0 comments on commit 754a263

Please sign in to comment.