aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/InsecureRandomDataProvider.cc
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2023-05-20 14:34:53 +0200
committerm-holger <m-holger@kubitscheck.org>2023-05-20 16:41:44 +0200
commit2fa581537b068e5ddcaee68fd7b92e290fc5fc53 (patch)
treebcd19f51a33a389f9da1ca09b5b4b0c8e2d2cd5b /libqpdf/InsecureRandomDataProvider.cc
parent41ec7eda54e2263eeb1aee4c3a0616c9c2777fb7 (diff)
downloadqpdf-2fa581537b068e5ddcaee68fd7b92e290fc5fc53.tar.zst
Use auto when initializing with a cast
Diffstat (limited to 'libqpdf/InsecureRandomDataProvider.cc')
-rw-r--r--libqpdf/InsecureRandomDataProvider.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/InsecureRandomDataProvider.cc b/libqpdf/InsecureRandomDataProvider.cc
index 90a548ee..ed62d6c7 100644
--- a/libqpdf/InsecureRandomDataProvider.cc
+++ b/libqpdf/InsecureRandomDataProvider.cc
@@ -24,7 +24,7 @@ InsecureRandomDataProvider::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.
- unsigned int seed =
+ auto seed =
static_cast<unsigned int>(QUtil::get_current_time() ^ 0xcccc);
#ifdef HAVE_RANDOM
::srandom(seed);