You are here

function botcha_generate_secret_key in BOTCHA Spam Prevention 7

Same name and namespace in other branches
  1. 6 botcha.pages.inc \botcha_generate_secret_key()
  2. 6.2 botcha.admin.inc \botcha_generate_secret_key()
  3. 7.2 botcha.admin.inc \botcha_generate_secret_key()

Generate a random secret key.

2 calls to botcha_generate_secret_key()
botcha_admin_settings_submit in ./botcha.pages.inc
Submission function for botcha_admin_settings form.
_botcha_admin_settings in ./botcha.pages.inc
Module settings form.

File

./botcha.pages.inc, line 427
Implementation of botcha administration forms.

Code

function botcha_generate_secret_key() {
  return md5(uniqid(mt_rand(), TRUE));
}