Skip to content

Commit

Permalink
Merge pull request #10 from CiiDyR/patch-1
Browse files Browse the repository at this point in the history
Fix docblock
  • Loading branch information
lastguest authored Apr 13, 2021
2 parents 4c74e02 + 5628b06 commit 0150ba2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lastguest/Murmur.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class Murmur {

/**
* @param string $key Text to hash.
* @param number $seed Positive integer only
* @return number 32-bit positive integer hash
* @param integer $seed Positive integer only
* @return integer 32-bit positive integer hash
*/
public static function hash3_int(string $key, int $seed=0) : int {
$key = array_values(unpack('C*', $key));
Expand Down Expand Up @@ -61,10 +61,10 @@ public static function hash3_int(string $key, int $seed=0) : int {

/**
* @param string $key Text to hash.
* @param number $seed Positive integer only
* @param integer $seed Positive integer only
* @return string
*/
public static function hash3(string $key, int $seed=0) : string {
return base_convert(sprintf("%u\n", self::hash3_int($key, $seed)), 10, 32);
}
}
}

0 comments on commit 0150ba2

Please sign in to comment.