From 8b0ebe5a478fae92a49f12b5ac6090ba9d15bcbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 26 Aug 2015 11:15:50 +0200 Subject: Fix random configuration generator Picosat is as default using 0 as seed for random generator. This lead on same configuration every time. --- scripts/configurations.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/configurations.py b/scripts/configurations.py index ed81ef2..aaf7ad0 100644 --- a/scripts/configurations.py +++ b/scripts/configurations.py @@ -5,6 +5,7 @@ import shutil import subprocess import time import hashlib +import struct import utils from conf import conf @@ -203,7 +204,7 @@ def __generate_single__(var_num, conf_num): def __generate_random__(var_num, conf_num): tfile = __buildtempcnf__(var_num, (sf(conf.rules_file), sf(conf.fixed_file)), set()) try: - confs = __exec_sat__(tfile, ['-i', '3'], conf_num) + confs = __exec_sat__(tfile, ['-i', '3', '-s', struct.unpack('