소스 검색

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