2008-10-02 Jeff Johnston <jjohnstn@redhat.com>

* libc/include/sys/reent.h[_REENT_SMALL](_REENT_INIT_RAND48): Add
        initialization of _rand_next to 1.
This commit is contained in:
Jeff Johnston 2008-10-02 16:43:23 +00:00
parent 36670cc234
commit 9d36d24f6e
2 changed files with 13 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2008-10-02 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/reent.h[_REENT_SMALL](_REENT_INIT_RAND48): Add
initialization of _rand_next to 1.
2008-09-29 Peter O'Gorman <pogma@thewrittenword.com>
Steve Ellcey <sje@cup.hp.com>

View File

@ -501,6 +501,7 @@ extern const struct __sFILE_fake __sf_fake_stderr;
_r->_r48->_mult[1] = _RAND48_MULT_1; \
_r->_r48->_mult[2] = _RAND48_MULT_2; \
_r->_r48->_add = _RAND48_ADD; \
_r->_r48->_rand_next = 1; \
} while (0)
#define _REENT_CHECK_RAND48(var) \
_REENT_CHECK(var, _r48, struct _rand48 *, sizeof *((var)->_r48), _REENT_INIT_RAND48((var)))