SHARE
TWEET

Untitled

a guest Mar 20th, 2017 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local function calculate_hash(crystal, item, count)
  2.     local c = ((crystal % 6506) % 4238) % 4096
  3.     local m = (c + 1) * 6 + 77
  4.     local b = (c + 1) * 42 + 31
  5.     local m2 = (8 * (c) + 26) + (item - 1) * (c + 35)
  6.     return (m * item + b + m2 * (count - 1)) % 127
  7. end
RAW Paste Data
Top