Skip to content

Commit

Permalink
bump murmurhash-php to php7.0 version
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Kerin authored and afk11 committed Jan 15, 2018
1 parent aa76e64 commit 0e57762
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"paragonie/random_compat": "^1.4.0|^2.0.0",
"pleonasm/merkle-tree": "1.0.0",
"composer/semver": "^1.4.0",
"lastguest/murmurhash": "v1.3.0",
"lastguest/murmurhash": "v2.0.0",
"rgooding/protobuf-php": "v0.0.1",
"symfony/http-foundation": "^2.7|^3.0",
"mdanter/ecc": "^0.5.0",
Expand Down
3 changes: 2 additions & 1 deletion src/Crypto/Hash.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use BitWasp\Buffertools\Buffer;
use BitWasp\Buffertools\BufferInterface;
use lastguest\Murmur;

class Hash
{
Expand Down Expand Up @@ -112,7 +113,7 @@ public static function pbkdf2(string $algorithm, BufferInterface $password, Buff
*/
public static function murmur3(BufferInterface $data, int $seed): BufferInterface
{
return new Buffer(pack('N', murmurhash3_int($data->getBinary(), (int)$seed)), 4);
return new Buffer(pack('N', Murmur::hash3_int($data->getBinary(), $seed)), 4);
}

/**
Expand Down

0 comments on commit 0e57762

Please sign in to comment.