Skip to content

Commit 180e122

Browse files
authored
Apply suggestions from code review
Signed-off-by: Athan <kgryte@gmail.com>
1 parent 97865d8 commit 180e122

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/node_modules/@stdlib/math/base/special/acovercos/benchmark/benchmark.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ bench( pkg+'::native', opts, function benchmark( b ) {
4545

4646
b.tic();
4747
for ( i = 0; i < b.iterations; i++ ) {
48-
x = ( randu()*-2.0 );
48+
x = ( -2.0*randu() ) + 0.0;
4949
y = acovercos( x );
5050
if ( isnan( y ) ) {
5151
b.fail( 'should not return NaN' );

0 commit comments

Comments
 (0)