Преглед изворни кода

research/pvss: Use a random secret.

parazyd пре 3 година
родитељ
комит
1361ef7183
1 измењених фајлова са 2 додато и 2 уклоњено
  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
 # Distribution
 # ============
 # ============
 # The dealer selects a secret s:
 # 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
 # The dealer picks a random polynomial p of degree at most t-1 with
 # coefficients in Fp and sets s=alpha_0
 # coefficients in Fp and sets s=alpha_0