random-util: we are fine if ints are 16 bytes actually
authorLennart Poettering <lennart@poettering.net>
Tue, 11 Jul 2017 08:36:53 +0000 (10:36 +0200)
committerLennart 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

index a8bcee1..810eeab 100644 (file)
@@ -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