Hacker News new | ask | show | jobs
by gpderetta 3475 days ago
Yes, this exact trick is used for tcp sequence numbers, for example, which are allowed to overflow, and as long as the unack'd bytes are less than 231 everything works fine as long as computation is done with unsigned integers.
1 comments

(too late to edit)

HN ate my asterisks. s/231/2^31/