Explorar o código

Left the important '+1' off the random number.

Brian Hauer %!s(int64=12) %!d(string=hai) anos
pai
achega
0172be2356
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      gemini/Source/hello/home/handler/HelloHandler.java

+ 1 - 1
gemini/Source/hello/home/handler/HelloHandler.java

@@ -47,7 +47,7 @@ public class HelloHandler
   @PathSegment
   public boolean db()
   {
-    return json(store.get(World.class, ThreadLocalRandom.current().nextInt(DB_ROWS)));
+    return json(store.get(World.class, ThreadLocalRandom.current().nextInt(DB_ROWS) + 1));
   }
 
   /**