소스 검색

improved random generator

Raphael Javaux 12 년 전
부모
커밋
9b69c53fc8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      yesod/bench/Application.hs

+ 1 - 1
yesod/bench/Application.hs

@@ -28,7 +28,7 @@ getDBR = do
 
 getDB2R :: Int -> Handler RepJson
 getDB2R n = do
-    is <- force . take n . randomRs (1, 10000) <$> newStdGen
+    is <- force . take n . randomRs (1, 10000) <$> liftIO newStdGen
 
     os <- runDB $
         forM is $ \i-> do