Skip to content
This repository was archived by the owner on Nov 22, 2022. It is now read-only.

Commit 85dea29

Browse files
Use internal PRNG for shuffling flow.Sequences and flow.Loops
1 parent d8bb051 commit 85dea29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/library/src/flow.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Flow control components for lab.js
2-
import { shuffle, mean, isFunction } from 'lodash'
2+
import { mean, isFunction } from 'lodash'
33
import { entries } from 'core-js/fn/array'
44
import { Component, status } from './core'
55

@@ -46,7 +46,7 @@ export class Sequence extends Component {
4646
async onPrepare() {
4747
// Shuffle content, if requested
4848
if (this.options.shuffle) {
49-
this.options.content = shuffle(this.options.content)
49+
this.options.content = this.random.shuffle(this.options.content)
5050
}
5151

5252
// Define an iterator over the content

0 commit comments

Comments
 (0)