diff options
| author | amelia squires <[email protected]> | 2025-04-21 20:43:51 -0500 |
|---|---|---|
| committer | amelia squires <[email protected]> | 2025-04-21 20:43:51 -0500 |
| commit | af975d63f67e6cc2d17f1804acb66328905f8701 (patch) | |
| tree | ab23744e784044d29cc73cd1da4070011e7e858c /src/hash/pjw.c | |
| parent | b2ee662b4621282b137a2a2cf1be13bd60073c5a (diff) | |
better version support, fixes, and memory saftey
Diffstat (limited to 'src/hash/pjw.c')
| -rw-r--r-- | src/hash/pjw.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/hash/pjw.c b/src/hash/pjw.c index 7d37275..188030f 100644 --- a/src/hash/pjw.c +++ b/src/hash/pjw.c @@ -7,6 +7,10 @@ struct pjw_hash pjw_init(){ return (struct pjw_hash){.hash = 0, .high = 0};
}
+int pjw_free_l(lua_State* L){
+ return 0;
+}
+
void pjw_update(uint8_t* in, size_t len, struct pjw_hash* hash){
for(int i = 0; i != len; i++){
hash->hash = (hash->hash << 4) + *in++;
|
