Skip to content

Commit

Permalink
Merge pull request #7 from Desilo/6-dead-code-removal-request
Browse files Browse the repository at this point in the history
6 dead code removal request
  • Loading branch information
desilo-yongwoo authored Dec 12, 2023
2 parents 65d35ea + 8df4f39 commit eca7773
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/liberate/csprng/csprng.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def randbytes(self, shares=None, repeats=0, length=None, reshape=False):
if length is None:
L = self.L
else:
L = length
L = length // 16

# Set the target states.
target_states = []
Expand Down Expand Up @@ -261,7 +261,7 @@ def randint(self, amax=3, shift=0, repeats=0, length=None):
if length is None:
L = self.L
else:
L = length
L = length // 4

# Calculate shares.
# If repeats are greater than 0, those channels are
Expand Down Expand Up @@ -298,7 +298,7 @@ def discrete_gaussian(self, non_repeats=0, repeats=1, length=None):
if length is None:
L = self.L
else:
L = length
L = length // 4

# Set the target states.
target_states = []
Expand Down
6 changes: 0 additions & 6 deletions src/liberate/ntt/rns_partition.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,6 @@ def __init__(
self.num_scales = self.num_ordinary_primes - 1

self.base_prime_idx = self.num_ordinary_primes - 1
self.special_prime_idx = list(
range(
self.num_ordinary_primes + 1,
self.num_ordinary_primes + 1 + self.num_special_primes,
)
)

self.compute_destination_arrays()
self.compute_rescaler_locations()
Expand Down

0 comments on commit eca7773

Please sign in to comment.