summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/assets/captcha.php
diff options
context:
space:
mode:
authorxue <>2007-08-30 15:40:24 +0000
committerxue <>2007-08-30 15:40:24 +0000
commitd1875fd32e0aa7a093544b5decd0b43499424d4f (patch)
tree223c67445e9a204cabf93274061e506889a2090a /framework/Web/UI/WebControls/assets/captcha.php
parent8a6d62fbe24321bdd83afa118726f2bd14c7dfb3 (diff)
further enhanced TCaptcha.
Diffstat (limited to 'framework/Web/UI/WebControls/assets/captcha.php')
-rw-r--r--framework/Web/UI/WebControls/assets/captcha.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/framework/Web/UI/WebControls/assets/captcha.php b/framework/Web/UI/WebControls/assets/captcha.php
index 3da5f035..26ed44f4 100644
--- a/framework/Web/UI/WebControls/assets/captcha.php
+++ b/framework/Web/UI/WebControls/assets/captcha.php
@@ -37,6 +37,10 @@ if(isset($_GET['options']))
$alphabet=$options['alphabet'];
$fontSize=$options['fontSize'];
$theme=$options['theme'];
+ if(($randomSeed=$options['randomSeed'])>0)
+ srand($randomSeed);
+ else
+ srand((int)(microtime()*1000000));
$token=generateToken($publicKey,$privateKey,$alphabet,$tokenLength,$caseSensitive);
}
}