projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b54715
)
random-util: we are fine if ints are 16 bytes actually
author
Lennart Poettering
<lennart@poettering.net>
Tue, 11 Jul 2017 08:36:53 +0000
(10:36 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 11 Jul 2017 08:37:40 +0000
(10:37 +0200)
Not that it matters IRL, but let's make this less surprising to read...
src/basic/random-util.c
patch
|
blob
|
history
diff --git
a/src/basic/random-util.c
b/src/basic/random-util.c
index
a8bcee1
..
810eeab
100644
(file)
--- a/
src/basic/random-util.c
+++ b/
src/basic/random-util.c
@@
-114,7
+114,7
@@
void initialize_srand(void) {
auxv = (void*) getauxval(AT_RANDOM);
if (auxv) {
- assert_cc(sizeof(x) < 16);
+ assert_cc(sizeof(x) <
=
16);
memcpy(&x, auxv, sizeof(x));
} else
#endif