| 1 |
include Base.Hash.S with type seed = string and type hash_value = int |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
external alloc : unit -> state = "siphash_alloc" |
| 8 |
external reset_to : state -> seed -> state = "siphash_reset" [@@noalloc] |
| 9 |
external fold_int64 : state -> int64 -> state = "siphash_fold_int64" [@@noalloc] |
| 10 |
external fold_int : state -> int -> state = "siphash_fold_int" [@@noalloc] |
| 11 |
external fold_float : state -> float -> state = "siphash_fold_float" [@@noalloc] |
| 12 |
external fold_string : state -> string -> state = "siphash_fold_string" [@@noalloc] |
| 13 |
external get_hash_value : state -> int = "siphash_get_hash_value" [@@noalloc] |