We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fa2dd3 commit 4048985Copy full SHA for 4048985
dropwizard/src/main/java/com/example/helloworld/resources/WorldResource.java
@@ -1,4 +1,3 @@
1
-
2
package com.example.helloworld.resources;
3
4
import java.util.Random;
@@ -35,7 +34,7 @@ public World[] dbTest(@QueryParam("queries") Optional<Integer> queries)
35
34
36
for (int i = 0; i < totalQueries; i++)
37
{
38
- worlds[i] = this.worldDAO.findById((long)random.nextInt(10000)).orNull();
+ worlds[i] = this.worldDAO.findById((long)(random.nextInt(10000) + 1)).orNull();
39
}
40
return worlds;
41
0 commit comments