diff options
Diffstat (limited to 'src/blob.c')
-rw-r--r-- | src/blob.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -98,9 +98,9 @@ int apk_blob_split(apk_blob_t blob, apk_blob_t split, apk_blob_t *l, apk_blob_t } } -unsigned long apk_blob_hash(apk_blob_t blob) +unsigned long apk_blob_hash_seed(apk_blob_t blob, unsigned long seed) { - unsigned long hash = 5381; + unsigned long hash = seed; int i; for (i = 0; i < blob.len; i++) @@ -109,6 +109,11 @@ unsigned long apk_blob_hash(apk_blob_t blob) return hash; } +unsigned long apk_blob_hash(apk_blob_t blob) +{ + return apk_blob_hash_seed(blob, 5381); +} + int apk_blob_compare(apk_blob_t a, apk_blob_t b) { if (a.len == b.len) |