diff --git a/yesod-core/ChangeLog.md b/yesod-core/ChangeLog.md index edcb7e07..45793963 100644 --- a/yesod-core/ChangeLog.md +++ b/yesod-core/ChangeLog.md @@ -1,6 +1,6 @@ # ChangeLog for yesod-core -## 1.7.0 +## 1.6.20 * Generate CSRF tokens using a secure entropy source [#1726](https://github.com/yesodweb/yesod/pull/1726) * Change semantics of `yreGen` and `defaultGen` diff --git a/yesod-core/src/Yesod/Core/Dispatch.hs b/yesod-core/src/Yesod/Core/Dispatch.hs index 959aaae3..8a2501e6 100644 --- a/yesod-core/src/Yesod/Core/Dispatch.hs +++ b/yesod-core/src/Yesod/Core/Dispatch.hs @@ -96,9 +96,9 @@ toWaiAppPlain site = do -- | Generate a random number uniformly distributed in the full range -- of 'Int'. -- --- Note: Before 1.7.0, this generates pseudo-random number in an +-- Note: Before 1.6.20, this generates pseudo-random number in an -- unspecified range. The range size may not be a power of 2. Since --- 1.7.0, this uses a secure entropy source and generates in the full +-- 1.6.20, this uses a secure entropy source and generates in the full -- range of 'Int'. defaultGen :: IO Int defaultGen = bsToInt <$> getEntropy bytes diff --git a/yesod-core/src/Yesod/Core/Types.hs b/yesod-core/src/Yesod/Core/Types.hs index 322dce0a..11a55f1a 100644 --- a/yesod-core/src/Yesod/Core/Types.hs +++ b/yesod-core/src/Yesod/Core/Types.hs @@ -199,9 +199,9 @@ data YesodRunnerEnv site = YesodRunnerEnv -- ^ Generate a random number uniformly distributed in the full -- range of 'Int'. -- - -- Note: Before 1.7.0, the default value generates pseudo-random + -- Note: Before 1.6.20, the default value generates pseudo-random -- number in an unspecified range. The range size may not be a power - -- of 2. Since 1.7.0, the default value uses a secure entropy source + -- of 2. Since 1.6.20, the default value uses a secure entropy source -- and generates in the full range of 'Int'. , yreGetMaxExpires :: !(IO Text) } diff --git a/yesod-core/yesod-core.cabal b/yesod-core/yesod-core.cabal index b37a05ba..1c258f15 100644 --- a/yesod-core/yesod-core.cabal +++ b/yesod-core/yesod-core.cabal @@ -1,5 +1,5 @@ name: yesod-core -version: 1.7.0 +version: 1.6.20 license: MIT license-file: LICENSE author: Michael Snoyman