mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-21 00:07:36 +08:00
stdlib/arc4random.c: Fix reseed count for 16-bit targets.
This commit is contained in:
parent
85c030a75f
commit
7283d2513c
@ -99,7 +99,7 @@ _rs_stir(void)
|
|||||||
rs->rs_have = 0;
|
rs->rs_have = 0;
|
||||||
memset(rsx->rs_buf, 0, sizeof(rsx->rs_buf));
|
memset(rsx->rs_buf, 0, sizeof(rsx->rs_buf));
|
||||||
|
|
||||||
rs->rs_count = 1600000;
|
rs->rs_count = (SIZE_MAX <= 65535) ? 65000 : 1600000;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user