diff options
author | m-holger <m-holger@kubitscheck.org> | 2023-05-27 19:19:52 +0200 |
---|---|---|
committer | m-holger <m-holger@kubitscheck.org> | 2023-06-02 17:00:40 +0200 |
commit | 3c5700c255f4603b5df9c6d183d13dd71a083cc3 (patch) | |
tree | 0f01c62c54b56d009b341922fa3441907a2e560b /libqpdf/InsecureRandomDataProvider.cc | |
parent | 6e6a73d28f5f61f038209a61a3e85995dc71aa32 (diff) | |
download | qpdf-3c5700c255f4603b5df9c6d183d13dd71a083cc3.tar.zst |
Code tidy - reflow comments and strings
Diffstat (limited to 'libqpdf/InsecureRandomDataProvider.cc')
-rw-r--r-- | libqpdf/InsecureRandomDataProvider.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libqpdf/InsecureRandomDataProvider.cc b/libqpdf/InsecureRandomDataProvider.cc index 5f247167..1c7fb9ef 100644 --- a/libqpdf/InsecureRandomDataProvider.cc +++ b/libqpdf/InsecureRandomDataProvider.cc @@ -21,9 +21,8 @@ long InsecureRandomDataProvider::random() { if (!this->seeded_random) { - // Seed the random number generator with something simple, but - // just to be interesting, don't use the unmodified current - // time. It would be better if this were a more secure seed. + // Seed the random number generator with something simple, but just to be interesting, don't + // use the unmodified current time. It would be better if this were a more secure seed. auto seed = static_cast<unsigned int>(QUtil::get_current_time() ^ 0xcccc); #ifdef HAVE_RANDOM ::srandom(seed); |