Fix bad reference to random.index

This commit is contained in:
pyoor 2017-06-15 12:49:29 -04:00
parent a8fcf0d7bb
commit ddc42d0fa6

View file

@ -69,7 +69,7 @@ utils.script = {
}, },
makeArray: function (type, arrayLength, cb) { makeArray: function (type, arrayLength, cb) {
if (type === null || type === undefined) { if (type === null || type === undefined) {
type = random.index(['Uint8', 'Float32']) type = random.item(['Uint8', 'Float32'])
} }
switch (random.number(8)) { switch (random.number(8)) {
case 0: case 0: