diff --git a/src/ZugferdPdfWriter.php b/src/ZugferdPdfWriter.php index 5c0c053..d6fa325 100644 --- a/src/ZugferdPdfWriter.php +++ b/src/ZugferdPdfWriter.php @@ -102,7 +102,7 @@ public function setPdfVersion($version = '1.3', $binary_data = false): void if ($this->deterministicModeEnabled === true) { $this->PDFVersion .= "\n" . '%' . chr(128) . chr(129) . chr(130) . chr(131); } else { - $this->PDFVersion .= "\n" . '%' . chr(rand(128, 256)) . chr(rand(128, 256)) . chr(rand(128, 256)) . chr(rand(128, 256)); + $this->PDFVersion .= "\n" . '%' . chr(rand(128, 255)) . chr(rand(128, 255)) . chr(rand(128, 255)) . chr(rand(128, 255)); } } }