blindscrambler 0.1.1__cp39-abi3-macosx_11_0_arm64.whl → 0.1.2__cp39-abi3-macosx_11_0_arm64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
@@ -0,0 +1,2 @@
1
+ from .cvdistributions import uniform
2
+ __all__ = ["uniform"]
@@ -0,0 +1,15 @@
1
+ # Metadata:
2
+ # Author: Syed Raza
3
+ # email: sar0033@uah.edu
4
+
5
+ # use python secrets to make a normally distributed random samples
6
+ import secrets
7
+
8
+ def uniform(a: float = 0.0, b: float = 1.0) -> float:
9
+ """
10
+ Cryptographically secure sample
11
+ """
12
+ # 53 random bits gives 53-bit precision double
13
+ u = secrets.randbits(53) / (1 << 53) # in [0, 1)
14
+
15
+ return a + (b - a) * u
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: blindscrambler
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Requires-Dist: numpy>=2.3.3
5
5
  Requires-Dist: torch>=2.8.0
6
6
  Requires-Dist: twine>=6.1.0
@@ -1,11 +1,13 @@
1
- blindscrambler-0.1.1.dist-info/METADATA,sha256=FR7WqZiu_Xu4IeyqrDTLdGZtNP4ojMLHK55VO6H3rkA,373
2
- blindscrambler-0.1.1.dist-info/WHEEL,sha256=DLqF2HZq4W_umZdP6RnfAuqhmtX_UrV4mkqrSIMhipE,102
1
+ blindscrambler-0.1.2.dist-info/METADATA,sha256=h_1FCVyxGU3DcB6M7H66MnCHTj8zvzimG2Se37yAtl4,373
2
+ blindscrambler-0.1.2.dist-info/WHEEL,sha256=DLqF2HZq4W_umZdP6RnfAuqhmtX_UrV4mkqrSIMhipE,102
3
3
  blindscrambler/__init__.py,sha256=N6o-PTyGSlQ4ny1UA4ByeNenVF-wCTALnyP4WJ8PGas,98
4
- blindscrambler/_core.abi3.so,sha256=OG585R2Nb-fp_sH7C6qCpxzKDFG6hKWqIkwWvB6n0II,440336
4
+ blindscrambler/_core.abi3.so,sha256=4uKUtCwAO1Hbvzv0FXAt38rEHYbg-Quio8CdkJ_UMrk,440112
5
5
  blindscrambler/_core.pyi,sha256=b6oJaUXUzEzqUE5rpqefV06hl8o_JCU8pgKgIIzQgmc,33
6
6
  blindscrambler/differential/__init__.py,sha256=INnk5rX2ae6mG5yynAQYKzpQ0BYsHquUhA9ZzbPVLm8,45
7
7
  blindscrambler/differential/discrete.py,sha256=mPJg6YrDVuXK-dLXgb_VDqKl1IvKfSKahMA_rRTVKQY,369
8
+ blindscrambler/distributions/__init__.py,sha256=8O4VQvymecRFRP1njwAfbD4yUACA25RcLqn0QtZEjaE,58
9
+ blindscrambler/distributions/cvdistributions.py,sha256=_IgaPSbN5emA9J8daF9l12r1rsDKrscD8jLERuYWKY4,378
8
10
  blindscrambler/matrix/__init__.py,sha256=qlItVU8AVj_mP2NUJ3gor-lsovxk3Wxf5tUfKynoUbg,157
9
11
  blindscrambler/matrix/elementary.py,sha256=hArZLiBTA_vW1EZ0RniECf6ybJiJxO7KNuVHb_TZFQU,3987
10
12
  blindscrambler/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
- blindscrambler-0.1.1.dist-info/RECORD,,
13
+ blindscrambler-0.1.2.dist-info/RECORD,,