Differences From Artifact [4530c4317b]:
- File
src/objfw-defs.h.in
— part of check-in
[c1fe4b2b77]
at
2020-07-12 09:49:35
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] [more...]
To Artifact [cb58f5fac1]:
- File src/objfw-defs.h.in — part of check-in [d3fb77eb9c] at 2020-12-20 13:49:13 on branch trunk — Clean up a few defines (user: js, size: 1208) [annotate] [blame] [check-ins using] [more...]
| 1 2 3 4 5 6 7 | - - - |
|
︙ | |||
44 45 46 47 48 49 50 | 41 42 43 44 45 46 47 | - - - - | #undef OF_HAVE___THREAD #undef OF_NINTENDO_3DS #undef OF_NINTENDO_DS #undef OF_NO_SHARED #undef OF_OBJFW_RUNTIME #undef OF_UNIVERSAL #undef OF_WII |