diff options
author | dds <dds@FreeBSD.org> | 2006-11-06 13:55:11 +0000 |
---|---|---|
committer | dds <dds@FreeBSD.org> | 2006-11-06 13:55:11 +0000 |
commit | c15edb9d96dd6a4461bd687f8dc8ad5388b02f02 (patch) | |
tree | e0b79f484145bfec4ce6f98acde0e8d2fe8ce25b /lib/libc/stdio/xprintf_int.c | |
parent | 13dc4f1b111e5d9cb42399807ff15d52a0b75793 (diff) | |
download | FreeBSD-src-c15edb9d96dd6a4461bd687f8dc8ad5388b02f02.zip FreeBSD-src-c15edb9d96dd6a4461bd687f8dc8ad5388b02f02.tar.gz |
Do What I Mean when the user asks for random integers or characters.
Up to now jot would fail to generate the last character in the range
or skew the integer distribution in a way that would generate the numbers
in the range's limits with half the probability of the rest.
This modification fixes the program, rather than documenting the
strange behavior, as suggested in docs/54879.
Also, correctly specify the range of random(3).
PR: docs/54879
MFC after: 2 weeks
Diffstat (limited to 'lib/libc/stdio/xprintf_int.c')
0 files changed, 0 insertions, 0 deletions