Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Don't even bother with the while True. If you get a bucket collision with a random number, just don't log anything, or just fatally crash because you can't trust the platform's PRNG or don't have enough available entropy or are just plain unlucky. Keep it proper O(1).


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

Search: