From 0c1557e56add48fb187c518ecb80ad9d38663473 Mon Sep 17 00:00:00 2001 From: Crypt Date: Tue, 7 Jan 2014 18:12:25 +0200 Subject: [PATCH] Fix doc for generateSalt. $cost must be in range 4-31. --- framework/yii/helpers/BaseSecurity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/yii/helpers/BaseSecurity.php b/framework/yii/helpers/BaseSecurity.php index 491cb0e..ba7567f 100644 --- a/framework/yii/helpers/BaseSecurity.php +++ b/framework/yii/helpers/BaseSecurity.php @@ -326,7 +326,7 @@ class BaseSecurity * * @param integer $cost the cost parameter * @return string the random salt value. - * @throws InvalidParamException if the cost parameter is not between 4 and 30 + * @throws InvalidParamException if the cost parameter is not between 4 and 31 */ protected static function generateSalt($cost = 13) {