Found myself looking at the arc4random_uniform source (http://bxr.su/o/lib/libc/crypt/arc4random_uniform.c)
My question relates to the following line (the comment is their original comment) :
/* 2**32 % x == (2**32 - x) % x */
min = -upper_bound % upper_bound;
Now, I'm no mathematics genius, but surely -N%N will always equal zero. So why not just write
min=0