Differences From Artifact [f12fccebb9]:
- File src/objfw-defs.h.in — part of check-in [4592b16fab] at 2020-05-05 01:14:18 on branch trunk — Add OFSCTPSocket (user: js, size: 1384) [annotate] [blame] [check-ins using] [more...]
To 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...]
1 2 3 4 5 6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | - | #undef INFINITY #undef LLONG_MAX #undef LLONG_MIN #undef OF_APPLE_RUNTIME #undef OF_BIG_ENDIAN #undef OF_FLOAT_BIG_ENDIAN |
︙ | |||
27 28 29 30 31 32 33 | 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | - | #undef OF_HAVE_OSATOMIC_64 #undef OF_HAVE_PIPE #undef OF_HAVE_PLEDGE #undef OF_HAVE_PLUGINS #undef OF_HAVE_PROCESSES #undef OF_HAVE_PTHREADS #undef OF_HAVE_PTHREAD_SPINLOCKS |
︙ |