Skip to content

Instantly share code, notes, and snippets.

@paulbarbu
Created December 29, 2011 17:57
Show Gist options
  • Select an option

  • Save paulbarbu/1535283 to your computer and use it in GitHub Desktop.

Select an option

Save paulbarbu/1535283 to your computer and use it in GitHub Desktop.
Hello.
I'd like to know what's the explanation behind the math done on line #413 in
ext/session/session.c and why couldn't it be just:
total_bits / hash_bits_per_character
Where total_bits equals 128 if the hash function is md5 or 160 if sha1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment