Skip to content
Snippets Groups Projects
Commit f862fae4 authored by Kevin Jahns's avatar Kevin Jahns
Browse files

fixed a bug

parent 0493d99d
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ function getRandom (o) { ...@@ -9,7 +9,7 @@ function getRandom (o) {
} else if (o.constructor === Object) { } else if (o.constructor === Object) {
var ks = []; var ks = [];
for (var key in o) { for (var key in o) {
keys.push(key); ks.push(key);
} }
return o[getRandom(ks)]; return o[getRandom(ks)];
} }
...@@ -20,7 +20,8 @@ function getRandomNumber(n) { ...@@ -20,7 +20,8 @@ function getRandomNumber(n) {
} }
return Math.floor(Math.random() * n); return Math.floor(Math.random() * n);
} }
var keys = ["a", "b", "c", "d", "e", "f", 1, 2, 3, 4, 5, 6];
var numberOfYMapTests = 30; var numberOfYMapTests = 30;
function applyRandomTransactions (users, transactions, numberOfTransactions) { function applyRandomTransactions (users, transactions, numberOfTransactions) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment