by attack · 18y ago · 0 comments
Example implementation:
unames=['bob1','bob2','pg']
lu=len(unames)
secret_seed=309580435
from binascii import crc32
def hash_eq(number):
return crc32(str(number),secret_seed)
def get_uname(page_id):
return unames[hash_eq(page_id)%lu]
A checkbox for manual override could also be added.