fix(api,client): Pass in predictable random to revive randomVal calls
closes #8085
This commit is contained in:
@@ -8,7 +8,7 @@ function trueRandom () {
|
||||
// returns random property (the value)
|
||||
module.exports = function randomVal (obj, options = {}) {
|
||||
let array = options.key ? _.keys(obj) : _.values(obj);
|
||||
let random = (options.predictableRandom || trueRandom)();
|
||||
let random = options.predictableRandom || trueRandom();
|
||||
|
||||
array.sort();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user