You are here

function botcha_generate_secret_key in BOTCHA Spam Prevention 7.2

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 botcha.pages.inc \botcha_generate_secret_key()

Generate a random secret key.

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

File

./botcha.admin.inc, line 14
Implementation of botcha administration forms.

Code

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