diff options
author | Jon Beniston <jon@beniston.com> | 2018-09-05 12:57:33 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2018-09-06 14:26:25 +0300 |
commit | 7283d2513c19618785d983e254005b9d36c7068e (patch) | |
tree | 5f5da97bbff7cb6dd089b0b300e61a27980305c7 | |
parent | 85c030a75f1c9ab2e30f3a56e7fa3128d1f4c833 (diff) |
stdlib/arc4random.c: Fix reseed count for 16-bit targets.
-rw-r--r-- | newlib/libc/stdlib/arc4random.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdlib/arc4random.c b/newlib/libc/stdlib/arc4random.c index 3cccc3ed4..7632de164 100644 --- a/newlib/libc/stdlib/arc4random.c +++ b/newlib/libc/stdlib/arc4random.c @@ -99,7 +99,7 @@ _rs_stir(void) rs->rs_have = 0; memset(rsx->rs_buf, 0, sizeof(rsx->rs_buf)); - rs->rs_count = 1600000; + rs->rs_count = (SIZE_MAX <= 65535) ? 65000 : 1600000; } static inline void |