Change version number

This commit is contained in:
Hypercube 2021-05-11 14:03:51 +08:00
parent 5deabe53e8
commit 1cb0fc579c
4 changed files with 6 additions and 6 deletions

View File

@ -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`

View File

@ -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

View File

@ -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)
}

View File

@ -1,5 +1,5 @@
name: yesod-core
version: 1.7.0
version: 1.6.20
license: MIT
license-file: LICENSE
author: Michael Snoyman <michael@snoyman.com>