Browse Source

stdlib/arc4random.c: Fix reseed count for 16-bit targets.

sh3port
Jon Beniston 3 years ago
committed by Corinna Vinschen
parent
commit
7283d2513c
  1. 2
      newlib/libc/stdlib/arc4random.c

2
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

Loading…
Cancel
Save