pfg 93698c5f59 libc/gen: small updates to code originating at OpenBSD
arc4random.c
- CVS rev. 1.22
Change arc4random_uniform() to calculate ``2**32 % upper_bound'' as
``-upper_bound % upper_bound''. Simplifies the code and makes it the
same on both ILP32 and LP64 architectures, and also slightly faster on
LP64 architectures by using a 32-bit remainder instead of a 64-bit
remainder.
- CVS rev. 1.23
Spacing

readpassphrase.c
-CVS rev. v 1.24
most obvious unsigned char casts for ctype

Obtained from:	OpenBSD
MFC after:	5 days
2014-07-15 02:21:35 +00:00
..
2012-08-11 12:07:24 +00:00
2013-08-18 13:25:18 +00:00
2012-04-26 19:21:58 +00:00
2013-04-11 20:15:37 +00:00
2012-03-26 15:18:14 +00:00
2014-05-29 13:35:13 +00:00
2013-04-23 13:03:03 +00:00
2013-04-23 13:03:03 +00:00
2012-12-12 15:27:33 +00:00
2014-07-07 00:27:09 +00:00