fix(api,client): Pass in predictable random to revive randomVal calls

closes #8085
This commit is contained in:
Blade Barringer
2016-09-30 08:14:03 -05:00
parent 2476cdd873
commit 306505ebab
3 changed files with 10 additions and 16 deletions

View File

@@ -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();