mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-07-22 14:30:41 -04:00
documentation on fnv1a64 is lacking, but tests show it was only introduced with PHP 5.6
This commit is contained in:
parent
9b6b25dac0
commit
02f3cc739f
4 changed files with 4 additions and 4 deletions
|
@ -98,7 +98,7 @@ class DatabaseTest extends PHPUnit_Framework_TestCase
|
|||
$keys = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'x', 'y', 'z');
|
||||
$ids = array();
|
||||
foreach ($keys as $key) {
|
||||
$ids[$key] = hash('fnv1a64', $key);
|
||||
$ids[$key] = hash('fnv164', $key);
|
||||
$this->_model->delete($ids[$key]);
|
||||
$this->assertFalse($this->_model->exists($ids[$key]), "paste $key does not yet exist");
|
||||
if (in_array($key, array('y', 'z'))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue