浏览代码

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));
   }
 
   /**