From e01a488b3136ec7b0f2614cd49e4cf1afce1f655 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Sun, 10 Jan 2016 22:07:33 +0100 Subject: Remove generateRandomBytes from OC_Util --- lib/private/setup/postgresql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/setup/postgresql.php') diff --git a/lib/private/setup/postgresql.php b/lib/private/setup/postgresql.php index 59762209d08..850551e794f 100644 --- a/lib/private/setup/postgresql.php +++ b/lib/private/setup/postgresql.php @@ -61,7 +61,7 @@ class PostgreSQL extends AbstractDatabase { //add prefix to the postgresql user name to prevent collisions $this->dbUser='oc_'.$username; //create a new password so we don't need to store the admin config in the config file - $this->dbPassword=\OC_Util::generateRandomBytes(30); + $this->dbPassword = \OC::$server->getSecureRandom()->generate(30, \OCP\Security\ISecureRandom::CHAR_LOWER.\OCP\Security\ISecureRandom::CHAR_DIGITS); $this->createDBUser($connection); } -- cgit v1.2.3