From cf6b1f84aa1462e849ebc64490a0e4e26310dc73 Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 27 Nov 2018 12:01:03 +0100 Subject: [PATCH] Initialize pseudorandom number with 2^64-1 --- src/image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/image.cpp b/src/image.cpp index bff1217..bf11db9 100644 --- a/src/image.cpp +++ b/src/image.cpp @@ -96,7 +96,7 @@ Image image::identicon(const string &digest) try { - std::uint64_t random = 0xffff; + std::uint64_t random = 0xffffffffffffffff; for (uint64_t chunk = 0; chunk < 4; ++chunk) { std::stringstream ss;