[Pkg-owncloud-commits] [owncloud] 33/74: Back to OC_Util::generateRandomBytes()
David Prévot
taffit at moszumanska.debian.org
Tue Dec 2 22:04:35 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit f371f14fc2117206fd063d4b8fe9bee071418ba4
Author: Joas Schilling <nickvergessen at gmx.de>
Date: Mon Nov 17 17:37:37 2014 +0100
Back to OC_Util::generateRandomBytes()
---
tests/lib/testcase.php | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/tests/lib/testcase.php b/tests/lib/testcase.php
index a4b4b01..f257822 100644
--- a/tests/lib/testcase.php
+++ b/tests/lib/testcase.php
@@ -25,9 +25,6 @@ namespace Test;
abstract class TestCase extends \PHPUnit_Framework_TestCase {
protected function getUniqueID($prefix = '', $length = 13) {
// Do not use dots and slashes as we use the value for file names
- return $prefix . \OC::$server->getSecureRandom()->getLowStrengthGenerator()->generate(
- $length,
- '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
- );
+ return $prefix . \OC_Util::generateRandomBytes($length);
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list