Hacker News new | past | comments | ask | show | jobs | submit login

"Because the protocol uses random strings, the probability of hitting this bug is about 1/256."

Why 1/256?




Because when the return value is truncated to a char, the last two bytes in the int would have to be 0x00, which is 1/256 assuming the return value is a completley random int.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: