Przeglądaj źródła

research/pvss: Use a random secret.

parazyd 3 lat temu
rodzic
commit
1361ef7183
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      script/research/pvss/pvss.sage

+ 2 - 2
script/research/pvss/pvss.sage

@@ -42,8 +42,8 @@ for i in range(n):
 # Distribution
 # ============
 # The dealer selects a secret s:
-#s = Fp.random_element()
-s = Fq(42)
+s = Fq.random_element()
+#s = Fq(42)
 
 # The dealer picks a random polynomial p of degree at most t-1 with
 # coefficients in Fp and sets s=alpha_0