Skip to content

Commit ec75b34

Browse files
committed
Lowercase property name
This change stems from changes to how PRNG state is stored along with an associated seed. As a consequence, whenever a PRNG state is set, so, too, is the PRNG seed to ensure consistency and reproducibility. In which case, a PRNG seed is no longer a "constant". Hence, we lowercase the property name to reflect this fact.
1 parent 490dad6 commit ec75b34

File tree

426 files changed

+902
-902
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

426 files changed

+902
-902
lines changed

lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-require-throws-tags/test/fixtures/invalid.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ test = {
7676
' iter = {};',
7777
' setReadOnly( iter, \'next\', next );',
7878
' setReadOnly( iter, \'return\', end );',
79-
' setReadOnly( iter, \'SEED\', rand.SEED );',
79+
' setReadOnly( iter, \'seed\', rand.seed );',
8080
'',
8181
' // If an environment supports `Symbol.iterator`, make the iterator iterable:',
8282
' if ( iteratorSymbol ) {',
@@ -131,7 +131,7 @@ test = {
131131
' */',
132132
' function factory() {',
133133
' iterator( p, {',
134-
' \'seed\': iter.SEED,',
134+
' \'seed\': iter.seed,',
135135
' \'iter\': niter',
136136
' });',
137137
' }',

lib/node_modules/@stdlib/fastmath/special/alpha-max-plus-beta-min/test/test.factory.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ tape( 'the returned function computes the hypotenuse using the alpha max plus be
5454
var i;
5555

5656
rand = randu();
57-
t.ok( true, 'seed: '+rand.SEED );
57+
t.ok( true, 'seed: '+rand.seed );
5858

5959
approx = factory( 1.0, 0.5 );
6060
tol = 0.1180;
@@ -87,7 +87,7 @@ tape( 'the returned function computes the hypotenuse using the alpha max plus be
8787
var i;
8888

8989
rand = randu();
90-
t.ok( true, 'seed: '+rand.SEED );
90+
t.ok( true, 'seed: '+rand.seed );
9191

9292
approx = factory( 1.0, 0.5, true );
9393
tol = 0.1180;
@@ -120,7 +120,7 @@ tape( 'the returned function computes the hypotenuse using the alpha max plus be
120120
var i;
121121

122122
rand = randu();
123-
t.ok( true, 'seed: '+rand.SEED );
123+
t.ok( true, 'seed: '+rand.seed );
124124

125125
approx = factory( 1.0, 0.5, false, true );
126126
tol = 0.30; // mainly due to |x| = |y| = 1
@@ -153,7 +153,7 @@ tape( 'the returned function computes the hypotenuse using the alpha max plus be
153153
var i;
154154

155155
rand = randu();
156-
t.ok( true, 'seed: '+rand.SEED );
156+
t.ok( true, 'seed: '+rand.seed );
157157

158158
approx = factory( 1.0, 0.5, true, true );
159159
tol = 0.30; // mainly due to |x| = |y| = 1
@@ -186,7 +186,7 @@ tape( 'the returned function computes the hypotenuse using the alpha max plus be
186186
var i;
187187

188188
rand = randu();
189-
t.ok( true, 'seed: '+rand.SEED );
189+
t.ok( true, 'seed: '+rand.seed );
190190

191191
approx = factory( 1.0, 0.25 );
192192
tol = 0.1161;
@@ -219,7 +219,7 @@ tape( 'the returned function computes the hypotenuse using the alpha max plus be
219219
var i;
220220

221221
rand = randu();
222-
t.ok( true, 'seed: '+rand.SEED );
222+
t.ok( true, 'seed: '+rand.seed );
223223

224224
approx = factory( 1.0, 0.25, true );
225225
tol = 0.1161;
@@ -252,7 +252,7 @@ tape( 'the returned function computes the hypotenuse using the alpha max plus be
252252
var i;
253253

254254
rand = randu();
255-
t.ok( true, 'seed: '+rand.SEED );
255+
t.ok( true, 'seed: '+rand.seed );
256256

257257
approx = factory( 1.0, 0.25, false, true );
258258
tol = 0.30; // mainly due to |x| = |y| = 1
@@ -285,7 +285,7 @@ tape( 'the returned function computes the hypotenuse using the alpha max plus be
285285
var i;
286286

287287
rand = randu();
288-
t.ok( true, 'seed: '+rand.SEED );
288+
t.ok( true, 'seed: '+rand.seed );
289289

290290
approx = factory( 1.0, 0.25, true, true );
291291
tol = 0.30; // mainly due to |x| = |y| = 1
@@ -318,7 +318,7 @@ tape( 'the returned function computes the hypotenuse using the alpha max plus be
318318
var i;
319319

320320
rand = randu();
321-
t.ok( true, 'seed: '+rand.SEED );
321+
t.ok( true, 'seed: '+rand.seed );
322322

323323
approx = factory( 1.0, 3.0/8.0 );
324324
tol = 0.0680;
@@ -351,7 +351,7 @@ tape( 'the returned function computes the hypotenuse using the alpha max plus be
351351
var i;
352352

353353
rand = randu();
354-
t.ok( true, 'seed: '+rand.SEED );
354+
t.ok( true, 'seed: '+rand.seed );
355355

356356
approx = factory( 1.0, 3.0/8.0, true );
357357
tol = 0.0680;
@@ -384,7 +384,7 @@ tape( 'the returned function computes the hypotenuse using the alpha max plus be
384384
var i;
385385

386386
rand = randu();
387-
t.ok( true, 'seed: '+rand.SEED );
387+
t.ok( true, 'seed: '+rand.seed );
388388

389389
approx = factory( 1.0, 3.0/8.0, true );
390390
tol = 0.0680;
@@ -417,7 +417,7 @@ tape( 'the returned function computes the hypotenuse using the alpha max plus be
417417
var i;
418418

419419
rand = randu();
420-
t.ok( true, 'seed: '+rand.SEED );
420+
t.ok( true, 'seed: '+rand.seed );
421421

422422
approx = factory( 7.0/8.0, 7.0/16.0 );
423423
tol = 0.1250;
@@ -450,7 +450,7 @@ tape( 'the returned function computes the hypotenuse using the alpha max plus be
450450
var i;
451451

452452
rand = randu();
453-
t.ok( true, 'seed: '+rand.SEED );
453+
t.ok( true, 'seed: '+rand.seed );
454454

455455
approx = factory( 15.0/16.0, 15.0/32.0 );
456456
tol = 0.0625;
@@ -483,7 +483,7 @@ tape( 'the returned function computes the hypotenuse using the alpha max plus be
483483
var i;
484484

485485
rand = randu();
486-
t.ok( true, 'seed: '+rand.SEED );
486+
t.ok( true, 'seed: '+rand.seed );
487487

488488
approx = factory( 0.96043387010342, 0.397824734759316 );
489489
tol = 0.0396;
@@ -516,7 +516,7 @@ tape( 'the returned function computes the hypotenuse using the alpha max plus be
516516
var i;
517517

518518
rand = randu();
519-
t.ok( true, 'seed: '+rand.SEED );
519+
t.ok( true, 'seed: '+rand.seed );
520520

521521
approx = factory( 0.96043387010342, 0.397824734759316, true, true );
522522
tol = 0.0396;

lib/node_modules/@stdlib/fastmath/special/alpha-max-plus-beta-min/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ tape( 'the function computes the hypotenuse using the alpha max plus beta min al
5151
var i;
5252

5353
rand = randu();
54-
t.ok( true, 'seed: '+rand.SEED );
54+
t.ok( true, 'seed: '+rand.seed );
5555

5656
tol = 0.0396;
5757
for ( i = 0; i < 500; i++ ) {

lib/node_modules/@stdlib/ml/incr/kmeans/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ function incrkmeans() {
243243
copyMatrix( results.centroids, centroids );
244244
}
245245
// Attach properties and methods to the accumulator:
246-
setReadOnly( accumulator, 'SEED', opts.seed );
246+
setReadOnly( accumulator, 'seed', opts.seed );
247247
setReadOnly( accumulator, 'predict', predict );
248248

249249
return accumulator;

lib/node_modules/@stdlib/random/base/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ The namespace contains the following PRNGs:
9393
Attached to each PRNG are the following properties:
9494

9595
- **NAME**: the generator name.
96-
- **SEED**: the value used to seed the PRNG.
96+
- **seed**: the value used to seed the PRNG.
9797
- **STATE**: the PRNG state.
9898
- **STATE_SIZE**: the size of the PRNG state.
9999
- **PRNG**: the underlying pseudorandom number generator.
@@ -112,7 +112,7 @@ for ( i = 0; i < 100; i++ ) {
112112

113113
// Generate the same pseudorandom values...
114114
rand = random.randu.factory({
115-
'seed': random.randu.SEED
115+
'seed': random.randu.seed
116116
});
117117
for ( i = 0; i < 100; i++ ) {
118118
v = rand();

lib/node_modules/@stdlib/random/base/arcsine/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ var prng = arcsine.PRNG;
131131
// returns <Function>
132132
```
133133

134-
#### arcsine.SEED
134+
#### arcsine.seed
135135

136136
The value used to seed `arcsine()`.
137137

@@ -147,7 +147,7 @@ for ( i = 0; i < 100; i++ ) {
147147

148148
// Generate the same pseudorandom values...
149149
rand = arcsine.factory( 0.0, 10.0, {
150-
'seed': arcsine.SEED
150+
'seed': arcsine.seed
151151
});
152152
for ( i = 0; i < 100; i++ ) {
153153
r = rand();
@@ -241,7 +241,7 @@ for ( i = 0; i < 100; i++ ) {
241241

242242
// Create another pseudorandom number generator using a previous seed...
243243
rand = arcsine.factory( 0.0, 1.0, {
244-
'seed': arcsine.SEED
244+
'seed': arcsine.seed
245245
});
246246
for ( i = 0; i < 100; i++ ) {
247247
console.log( rand() );

lib/node_modules/@stdlib/random/base/arcsine/docs/repl.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@
8888
> var prng = {{alias}}.PRNG;
8989

9090

91-
{{alias}}.SEED
91+
{{alias}}.seed
9292
Pseudorandom number generator seed.
9393

9494
Examples
9595
--------
96-
> var seed = {{alias}}.SEED;
96+
> var seed = {{alias}}.seed;
9797

9898

9999
{{alias}}.STATE

lib/node_modules/@stdlib/random/base/arcsine/examples/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var rand;
2525
var i;
2626

2727
// Generate pseudorandom numbers...
28-
console.log( '\nseed: %d', arcsine.SEED[ 0 ] );
28+
console.log( '\nseed: %d', arcsine.seed[ 0 ] );
2929
for ( i = 0; i < 100; i++ ) {
3030
console.log( arcsine( 0.0, 1.0 ) );
3131
}
@@ -42,9 +42,9 @@ for ( i = 0; i < 100; i++ ) {
4242

4343
// Create another pseudorandom number generator using a previous seed...
4444
rand = arcsine.factory( 0.0, 1.0, {
45-
'seed': arcsine.SEED
45+
'seed': arcsine.seed
4646
});
47-
console.log( '\nseed: %d', rand.SEED[ 0 ] );
47+
console.log( '\nseed: %d', rand.seed[ 0 ] );
4848
for ( i = 0; i < 100; i++ ) {
4949
console.log( rand() );
5050
}

lib/node_modules/@stdlib/random/base/arcsine/lib/factory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function factory() {
9898
prng = arcsine1;
9999
}
100100
setReadOnly( prng, 'NAME', 'arcsine' );
101-
setReadOnly( prng, 'SEED', rand.SEED );
101+
setReadOnly( prng, 'seed', rand.seed );
102102
defineProperty( prng, 'STATE', {
103103
'configurable': false,
104104
'enumerable': true,

lib/node_modules/@stdlib/random/base/arcsine/test/test.factory.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ tape( 'attached to the returned function is the generator seed', function test(
108108
var arcsine = factory({
109109
'seed': 12345
110110
});
111-
t.equal( isUint32Array( arcsine.SEED ), true, 'has `SEED` property' );
112-
t.equal( arcsine.SEED[ 0 ], 12345, 'equal to provided seed' );
111+
t.equal( isUint32Array( arcsine.seed ), true, 'has `seed` property' );
112+
t.equal( arcsine.seed[ 0 ], 12345, 'equal to provided seed' );
113113
t.end();
114114
});
115115

@@ -352,7 +352,7 @@ tape( 'the function returns a PRNG for generating random numbers from an arcsine
352352
rejected = 0;
353353
for ( i = 0; i < N; i++ ) {
354354
arcsine = factory( a, b );
355-
t.ok( true, 'seed: '+arcsine.SEED );
355+
t.ok( true, 'seed: '+arcsine.seed );
356356
for ( j = 0; j < x.length; j++ ) {
357357
x[ j ] = arcsine();
358358
if ( x[ j ] < a || x[ j ] > b ) {

0 commit comments

Comments
 (0)