You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ There are three main ways to use this library, and the appropriate choice will d
23
23
24
24
### Zero Allocation
25
25
26
-
The fastest use of this algorithm is to simply call `SipHasher.hash/2` which will call a zero-allocation implementation of the SipHash algorithm. This implementation should be used in most cases; specifically cases where you have frequently differing seed keys.
26
+
The fastest use of this algorithm is to simply call `SipHash.hash/2` which will call a zero-allocation implementation of the SipHash algorithm. This implementation should be used in most cases; specifically cases where you have frequently differing seed keys.
@@ -65,7 +65,7 @@ The final way to use the library is as a streaming digest; meaning that you can
65
65
```java
66
66
// create a container from our key
67
67
String key ="0123456789ABCDEF".getBytes();
68
-
SipHashStream hash =SipHasher.init(key);
68
+
SipHashStream hash =SipHash.init(key);
69
69
70
70
// update several times
71
71
hash.update("chu".getBytes());
@@ -78,7 +78,7 @@ long result = hash.digest();
78
78
79
79
## Formatting
80
80
81
-
By default, as of v2.0.0, all hashes are returned as a `long`. However, you can use `SipHasher.toHexString/1` to convert a hash to a hexidecimal String value.
81
+
By default, as of v2.0.0, all hashes are returned as a `long`. However, you can use `SipHash.toHexString/1` to convert a hash to a hexidecimal String value.
82
82
83
83
```java
84
84
// output will be padded (if necessary) to 16 bytes
0 commit comments