diff options
author | millert <> | 2012-03-21 12:36:49 +0000 |
---|---|---|
committer | millert <> | 2012-03-21 12:36:49 +0000 |
commit | bb1c08f6beedc5a89ad7713c914f734e29c76d74 (patch) | |
tree | c1820ad7ac29d6bff160ba4d8031d30a2f8ca01a /src/lib/libc/string | |
parent | d037dd6595ed75b194259764511aead1bb922a19 (diff) | |
download | openbsd-bb1c08f6beedc5a89ad7713c914f734e29c76d74.tar.gz openbsd-bb1c08f6beedc5a89ad7713c914f734e29c76d74.tar.bz2 openbsd-bb1c08f6beedc5a89ad7713c914f734e29c76d74.zip |
Fix a bug where random() always returns 0 when srandom() is seeded
with 0. Use 1 and not 0 as the first element of the state array,
similar to what glibc does. OK nicm@
Diffstat (limited to 'src/lib/libc/string')
0 files changed, 0 insertions, 0 deletions