Commit 62c5fa6b48bb08018f023fe4a08e3139ca771691
1 parent
aaeb7109
use srand and rand instead of srandom and random of the latter are not available
git-svn-id: svn+q:///qpdf/trunk@814 71b93d88-0707-0410-a8cf-f5a4172ac649
Showing
2 changed files
with
6 additions
and
0 deletions
configure.ac
libqpdf/Pl_AES_PDF.cc
| @@ -7,6 +7,11 @@ | @@ -7,6 +7,11 @@ | ||
| 7 | #include <qpdf/rijndael.h> | 7 | #include <qpdf/rijndael.h> |
| 8 | #include <string> | 8 | #include <string> |
| 9 | #include <stdlib.h> | 9 | #include <stdlib.h> |
| 10 | +#include <qpdf/qpdf-config.h> | ||
| 11 | +#ifndef HAVE_RANDOM | ||
| 12 | +# define random rand | ||
| 13 | +# define srandom srand | ||
| 14 | +#endif | ||
| 10 | 15 | ||
| 11 | Pl_AES_PDF::Pl_AES_PDF(char const* identifier, Pipeline* next, | 16 | Pl_AES_PDF::Pl_AES_PDF(char const* identifier, Pipeline* next, |
| 12 | bool encrypt, unsigned char const key[key_size]) : | 17 | bool encrypt, unsigned char const key[key_size]) : |