mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 19:20:55 +00:00
Use Math.random()
to generate the default seed
This commit is contained in:
parent
48b8365294
commit
f26d2762d2
@ -7,7 +7,7 @@ import seedrandom from "seedrandom/lib/alea";
|
||||
* @param seed An optional seed. If none is given, a random seed will be generated.
|
||||
* @returns The seed value.
|
||||
*/
|
||||
export function setSeed(seed: string = seedrandom().int32().toString()) {
|
||||
export function setSeed(seed: string = Math.random().toString()) {
|
||||
Math.random = seedrandom(seed);
|
||||
return seed;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user