Artifact 4530c4317bc7444a979baa1e2d398bc77704c04e9ce6798b4bbf56393331d00d:
- File
src/objfw-defs.h.in
-
2020-07-12 09:49:35
— part of check-in
[c1fe4b2b77]
on branch trunk
— Make of_random() a function
When arc4random() is unavailable, either random() or rand() is used and
both need to be seeded. If of_random() is a macro, it needs to be
(re)seeded every time, as it's unknown whether it has already been
seeded. As it is seeded with gettimeofday() due to the lack of a better
initial seed, this means every call returns the first state for the
current time, which is very predictable. random() and rand() are both
not cryptographic, but this should at least make it a little bit better
now. (user: js, size: 1336) [annotate] [blame] [check-ins using] - 2020-07-12 10:54:59 — part of check-in [be250b4fb3] on branch tagged-pointers — Merge trunk into branch "tagged-pointers" (user: js, size: 1336) [annotate] [blame] [check-ins using]
- 2020-10-04 15:00:40 — part of check-in [92335940e9] on branch amiga-library — Merge trunk into branch "amiga-library" (user: js, size: 1336) [annotate] [blame] [check-ins using]
-
2020-07-12 09:49:35
— part of check-in
[c1fe4b2b77]
on branch trunk
— Make of_random() a function