Browse Source

improved random generator

Raphael Javaux 12 years ago
parent
commit
bbaf1dbd6f
1 changed files with 1 additions and 1 deletions
  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