mega commit
This commit is contained in:
5
libs/functions.py
Normal file
5
libs/functions.py
Normal file
@@ -0,0 +1,5 @@
|
||||
def nxhash(text:str) -> str: # @BenVida StackOverflow
|
||||
hash=0
|
||||
for ch in text:
|
||||
hash = ( hash*281 ^ ord(ch)*997) & 0xFFFFFFFF
|
||||
return str(hex(hash)[2:].upper().zfill(8))
|
||||
Reference in New Issue
Block a user