(int size)
| 3260 | } |
| 3261 | |
| 3262 | public int randNumber(int size) { |
| 3263 | if (size <= 0) { |
| 3264 | return 0; |
| 3265 | } |
| 3266 | StringBuilder number = new StringBuilder(size); |
| 3267 | // Leading digit 1-9 so Integer.parseInt round-trips the requested width. |
| 3268 | number.append(1 + secureRandom.nextInt(9)); |
| 3269 | for (int i = 1; i < size; i++) { |
| 3270 | number.append(secureRandom.nextInt(10)); |
| 3271 | } |
| 3272 | return Integer.parseInt(number.toString()); |
| 3273 | } |
| 3274 | |
| 3275 | public CompletableFuture<Void> loadDydxProtos() |
| 3276 | { |