Skip to content

Commit

Permalink
change _bits
Browse files Browse the repository at this point in the history
  • Loading branch information
priyakasimbeg committed Feb 7, 2024
1 parent 43b27b2 commit 1fc4ce2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions algorithmic_efficiency/random_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ def _check_jax_install() -> None:


def _bits(seed: SeedType) -> int:
rng = np.random.RandomState(_signed_to_unsigned(seed))
b = rng.bytes(4)
return int.from_bytes(b, byteorder='little')
return seed


def fold_in(seed: SeedType, data: int) -> SeedType:
Expand Down

0 comments on commit 1fc4ce2

Please sign in to comment.