--- pgp/src/randpool.c 2018/04/24 16:42:20 1.1.1.2 +++ pgp/src/randpool.c 2018/04/24 16:43:39 1.1.1.3 @@ -30,7 +30,8 @@ /* The pool must be a multiple of the 16-byte (128-bit) MD5 block size */ #define RANDPOOLWORDS ((RANDPOOLBITS+127 & ~127) >> 5) #if RANDPOOLWORDS <= 16 -#error Random pool too small - please increase RANDPOOLBITS in randpool.h +/* #error is not portable, this has the same effect */ +#include "Random pool too small - please increase RANDPOOLBITS in randpool.h" #endif /* Must be word-aligned, so make it words. Cast to bytes as needed. */ @@ -42,7 +43,7 @@ static void xorbytes(byte *dest, byte const *src, unsigned len) { while (len--) - *dest++ = *src++; + *dest++ ^= *src++; } /*