Skip to content

Commit

Permalink
Merge branch 'main' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
juwhan-k committed Jan 11, 2024
2 parents 54d0a4d + 82567d6 commit 9feb1b9
Show file tree
Hide file tree
Showing 4 changed files with 228 additions and 127 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
Loading

0 comments on commit 9feb1b9

Please sign in to comment.