chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9800a6c
)
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
Sven Eden
<yamakuzure@gmx.net>
Tue, 25 Jul 2017 07:48:11 +0000
(09:48 +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 a8bcee184352b0d16826fdbdf458292211264cd8..810eeab4d551b395fe1833aa804ad23121737762 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