Fixed a call of function "generateRandomKey()" in app\base\Security