final static public function get_secret_key() {
        global $CFG;

        if (!isset($CFG->reposecretkey)) {
            set_config('reposecretkey', time() . random_string(32));
        }
        return $CFG->reposecretkey;
    }
final static public function get_secret_key() {
        global $CFG;

        if (!isset($CFG->reposecretkey)) {
            set_config('reposecretkey', time() . random_string(32));
        }
        return $CFG->reposecretkey;
    }
final static public function get_secret_key ( ) { global $ CFG ; if ( ! isset ( $ CFG -> reposecretkey ) ) { set_config ( 'reposecretkey' , time ( ) . random_string ( 32 ) ) ; } return $ CFG -> reposecretkey ; }
Generate a secret key to be used for passing sensitive information around.

@return string repository secret key.
Generate a secret key to be used for passing sensitive information around .