From 5d5a7e862b6fc3e9f05417a176f29d8cbd1afab8 Mon Sep 17 00:00:00 2001 From: Anselme Date: Fri, 21 Apr 2017 17:21:53 +0200 Subject: [PATCH] fixed fouras module revealing too many characters when asked for a clue --- app/fourasmodule.cpp | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/app/fourasmodule.cpp b/app/fourasmodule.cpp index f64d572..3766be9 100644 --- a/app/fourasmodule.cpp +++ b/app/fourasmodule.cpp @@ -53,21 +53,27 @@ bool FourasModule::messageHandler(Message msg) if(current != -1) { QString str = riddles->getAnswer(current); - std::srand(qHash(str)); + + // prepare the clue string QString finalString = "_"; for(int i=0; i