diff options
author | millert <> | 2012-03-21 12:36:49 +0000 |
---|---|---|
committer | millert <> | 2012-03-21 12:36:49 +0000 |
commit | 4e3c8b8c04fb0c6b6574bfb8fc2a20b02c697445 (patch) | |
tree | c1820ad7ac29d6bff160ba4d8031d30a2f8ca01a /src/lib/libcrypto/buffer/buffer.c | |
parent | 4f65cd5ad25f8898876022bb5e37cc072df7ba0b (diff) | |
download | openbsd-4e3c8b8c04fb0c6b6574bfb8fc2a20b02c697445.tar.gz openbsd-4e3c8b8c04fb0c6b6574bfb8fc2a20b02c697445.tar.bz2 openbsd-4e3c8b8c04fb0c6b6574bfb8fc2a20b02c697445.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/libcrypto/buffer/buffer.c')
0 files changed, 0 insertions, 0 deletions