From 29cd87c655aac8e1785a44308a1bd7598b3e64f3 Mon Sep 17 00:00:00 2001 From: Naoise Holohan Date: Fri, 29 Sep 2023 14:41:23 +0100 Subject: [PATCH] Fixing Exponential mechanism test --- tests/mechanisms/test_Exponential.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/mechanisms/test_Exponential.py b/tests/mechanisms/test_Exponential.py index eb6128b..96b3320 100644 --- a/tests/mechanisms/test_Exponential.py +++ b/tests/mechanisms/test_Exponential.py @@ -133,7 +133,7 @@ def test_zero_measure(self): measure = [1, 1, 0] utility = [1, 1, 1] runs = 10000 - mech = self.mech(epsilon=1, utility=utility, measure=measure, sensitivity=1) + mech = self.mech(epsilon=1, utility=utility, measure=measure, sensitivity=1, random_state=0) count = [0] * 3 for i in range(runs):