mirror of
https://github.com/psychopy/psychojs.git
synced 2025-05-12 08:38:10 +00:00
RF: follow PsychoJS style guide
This commit is contained in:
parent
170cf423d3
commit
fb0b231014
@ -261,10 +261,10 @@ export class TrialHandler extends PsychObject
|
||||
*
|
||||
* @param {boolean} newSeed - New value for seed
|
||||
*/
|
||||
setSeed(newSeed, log)
|
||||
setSeed(seed, log)
|
||||
{
|
||||
this._setAttribute('seed', newSeed, log);
|
||||
if (this.seed !== undefined)
|
||||
this._setAttribute('seed', seed, log);
|
||||
if (typeof this.seed !== 'undefined')
|
||||
{
|
||||
this._randomNumberGenerator = seedrandom(this.seed);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user