merge change for predictableRandom(options?.seed)

This commit is contained in:
Alice Harris
2014-09-02 13:47:57 +10:00
parent 9dfa30a61f
commit 86b6663485
+1 -1
View File
@@ -990,7 +990,7 @@ api.wrap = (user, main=true) ->
###
randomVal: (obj, options) ->
array = if options?.key then _.keys(obj) else _.values(obj)
rand = user.fns.predictableRandom(option?.seed)
rand = user.fns.predictableRandom(options?.seed)
array[Math.floor(rand * array.length)]
###