3 ms·
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 trus
by WorldMaker 8y ago
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).