method shouldn't be static

This commit is contained in:
Bjoern Schiessle 2015-04-28 18:06:46 +02:00
parent d5cbb66b66
commit 29bcfb2fdb

View file

@ -410,7 +410,7 @@ class Crypt {
* @return string
* @throws \Exception
*/
public static function generateFileKey() {
public function generateFileKey() {
// Generate key
$key = base64_encode(openssl_random_pseudo_bytes(32, $strong));
if (!$key || !$strong) {