(base, buckets)
| 211 | } |
| 212 | |
| 213 | function bucketedName(base, buckets) { |
| 214 | if (buckets <= 1) { |
| 215 | return base; |
| 216 | } |
| 217 | |
| 218 | var shard = Math.floor(Math.random() * buckets) + 1; |
| 219 | return base + "-bucket-" + shard; |
| 220 | } |
| 221 | |
| 222 | function postTxn(source, destination) { |
| 223 | var amount = Math.floor(Math.random() * (1000 - 100 + 1)) + 100; // 100..1000 |
no outgoing calls
no test coverage detected