Преглед на файлове

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

Brian Hauer преди 12 години
родител
ревизия
0172be2356
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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));
   }
 
   /**