simplerandom 0.13.5__tar.gz → 0.13.7__tar.gz

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.
Files changed (27) hide show
  1. {simplerandom-0.13.5 → simplerandom-0.13.7}/MANIFEST.in +1 -2
  2. {simplerandom-0.13.5/simplerandom.egg-info → simplerandom-0.13.7}/PKG-INFO +36 -16
  3. {simplerandom-0.13.5 → simplerandom-0.13.7}/README.rst +5 -4
  4. {simplerandom-0.13.5 → simplerandom-0.13.7}/cython/_bitcolumnmatrix_cython.pyx +1 -1
  5. {simplerandom-0.13.5 → simplerandom-0.13.7}/cython/_iterators_cython.pyx +8 -8
  6. simplerandom-0.13.7/pyproject.toml +27 -0
  7. {simplerandom-0.13.5 → simplerandom-0.13.7}/setup.py +2 -29
  8. {simplerandom-0.13.5 → simplerandom-0.13.7/simplerandom.egg-info}/PKG-INFO +36 -16
  9. simplerandom-0.13.7/simplerandom.egg-info/SOURCES.txt +22 -0
  10. {simplerandom-0.13.5 → simplerandom-0.13.7/src/simplerandom}/_version/__init__.py +1 -1
  11. {simplerandom-0.13.5/python3 → simplerandom-0.13.7/src}/simplerandom/iterators/_iterators_py.py +7 -7
  12. {simplerandom-0.13.5/python3 → simplerandom-0.13.7/src}/simplerandom/iterators/test.py +4 -4
  13. simplerandom-0.13.5/cython/_bitcolumnmatrix_cython.c +0 -26040
  14. simplerandom-0.13.5/cython/_iterators_cython.c +0 -41327
  15. simplerandom-0.13.5/simplerandom.egg-info/SOURCES.txt +0 -23
  16. {simplerandom-0.13.5 → simplerandom-0.13.7}/LICENSE.txt +0 -0
  17. {simplerandom-0.13.5 → simplerandom-0.13.7}/cython/types.h +0 -0
  18. {simplerandom-0.13.5 → simplerandom-0.13.7}/setup.cfg +0 -0
  19. {simplerandom-0.13.5 → simplerandom-0.13.7}/simplerandom.egg-info/dependency_links.txt +0 -0
  20. {simplerandom-0.13.5 → simplerandom-0.13.7}/simplerandom.egg-info/top_level.txt +0 -0
  21. {simplerandom-0.13.5/python3 → simplerandom-0.13.7/src}/simplerandom/__init__.py +0 -0
  22. {simplerandom-0.13.5/python3 → simplerandom-0.13.7/src}/simplerandom/_bitcolumnmatrix/__init__.py +0 -0
  23. {simplerandom-0.13.5/python3 → simplerandom-0.13.7/src}/simplerandom/_bitcolumnmatrix/_bitcolumnmatrix_py.py +0 -0
  24. {simplerandom-0.13.5/python3 → simplerandom-0.13.7/src}/simplerandom/iterators/__init__.py +0 -0
  25. {simplerandom-0.13.5/python3 → simplerandom-0.13.7/src}/simplerandom/random/__init__.py +0 -0
  26. {simplerandom-0.13.5/python3 → simplerandom-0.13.7/src}/simplerandom/random/_random_py.py +0 -0
  27. {simplerandom-0.13.5 → simplerandom-0.13.7}/test/test_iterators.py +0 -0
@@ -2,6 +2,5 @@ include *.txt
2
2
  recursive-include cython *.pyx
3
3
  recursive-include cython *.c
4
4
  recursive-include cython *.h
5
- recursive-include python3 *.py
5
+ recursive-include src *.py
6
6
  recursive-include test *.py
7
-
@@ -1,23 +1,42 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: simplerandom
3
- Version: 0.13.5
3
+ Version: 0.13.7
4
4
  Summary: Simple random number generators
5
- Home-page: http://github.com/cmcqueen/simplerandom
6
- Author: Craig McQueen
7
- Author-email: python@craig.mcqueen.id.au
8
- License: MIT
9
- Keywords: simple random pseudorandom RNG PRNG
5
+ Author-email: Craig McQueen <python@craig.mcqueen.id.au>
6
+ License: ----------------------------------------------------------------------------
7
+ Copyright (c) 2011 Craig McQueen
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ of this software and associated documentation files (the "Software"), to deal
11
+ in the Software without restriction, including without limitation the rights
12
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ copies of the Software, and to permit persons to whom the Software is
14
+ furnished to do so, subject to the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be included in
17
+ all copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ SOFTWARE.
26
+ ----------------------------------------------------------------------------
27
+
28
+
29
+ Project-URL: Homepage, https://github.com/cmcqueen/simplerandom
30
+ Project-URL: Bug Tracker, https://github.com/cmcqueen/simplerandom/issues
31
+ Keywords: simple,random,pseudorandom,RNG,PRNG
10
32
  Classifier: Development Status :: 5 - Production/Stable
11
33
  Classifier: Intended Audience :: Developers
12
34
  Classifier: License :: OSI Approved :: MIT License
13
- Classifier: Programming Language :: Python
14
35
  Classifier: Programming Language :: Python :: 3
15
- Classifier: Programming Language :: Python :: 3.6
16
- Classifier: Programming Language :: Python :: 3.7
17
- Classifier: Programming Language :: Python :: 3.8
18
- Classifier: Programming Language :: Python :: 3.9
19
36
  Classifier: Programming Language :: Cython
20
37
  Classifier: Topic :: Scientific/Engineering :: Mathematics
38
+ Requires-Python: >=3.6
39
+ Description-Content-Type: text/x-rst
21
40
  License-File: LICENSE.txt
22
41
 
23
42
  =============
@@ -108,7 +127,7 @@ References
108
127
 
109
128
  .. [#lecuyer1999] | `Tables of Maximally-Equidistributed Combined LFSR Generators`__
110
129
  | Pierre L'Ecuyer
111
- | Mathematics of Computation, 68, 225 (1999), 261–269.
130
+ | Mathematics of Computation, 68, 225 (1999), 261–269.
112
131
 
113
132
  .. __:
114
133
  .. _Tables of Maximally-Equidistributed Combined LFSR Generators:
@@ -123,7 +142,7 @@ References
123
142
 
124
143
  .. [#lecuyer1996] | `Maximally Equidistributed Combined Tausworthe Generators`__
125
144
  | P. L'Ecuyer
126
- | Mathematics of Computation, 65, 213 (1996), 203–213.
145
+ | Mathematics of Computation, 65, 213 (1996), 203–213.
127
146
 
128
147
  .. __:
129
148
  .. _Maximally Equidistributed Combined Tausworthe Generators:
@@ -173,7 +192,7 @@ generators implement the standard Python ``random.Random`` API. Each generator
173
192
  uses the iterator of the same name in ``simplerandom.iterators`` to generate
174
193
  the random bits used to produce the random floats. The ``jumpahead()`` function
175
194
  (in the style of the Python 2.x API) is implemented in all cases, even though
176
- ``jumpahead()`` has officially been removed from the Python 3.x ``random`` API.
195
+ ``jumpahead()`` has officially been removed from the Python 3.x ``random`` API.
177
196
 
178
197
 
179
198
  -----
@@ -209,8 +228,9 @@ Random class API
209
228
  Supported Python Versions
210
229
  -------------------------
211
230
 
212
- Python 3.6 through 3.9 is supported. It may or may not run on earlier Python
213
- 3.x versions, but these versions are no longer being tested.
231
+ Python >= 3.10 are supported.
232
+
233
+ Python versions < 3.10 might work, but have not been tested.
214
234
 
215
235
 
216
236
  -------------
@@ -101,7 +101,7 @@ References
101
101
 
102
102
  .. [#lecuyer1996] | `Maximally Equidistributed Combined Tausworthe Generators`__
103
103
  | P. L'Ecuyer
104
- | Mathematics of Computation, 65, 213 (1996), 203–213.
104
+ | Mathematics of Computation, 65, 213 (1996), 203–213.
105
105
 
106
106
  .. __:
107
107
  .. _Maximally Equidistributed Combined Tausworthe Generators:
@@ -151,7 +151,7 @@ generators implement the standard Python ``random.Random`` API. Each generator
151
151
  uses the iterator of the same name in ``simplerandom.iterators`` to generate
152
152
  the random bits used to produce the random floats. The ``jumpahead()`` function
153
153
  (in the style of the Python 2.x API) is implemented in all cases, even though
154
- ``jumpahead()`` has officially been removed from the Python 3.x ``random`` API.
154
+ ``jumpahead()`` has officially been removed from the Python 3.x ``random`` API.
155
155
 
156
156
 
157
157
  -----
@@ -187,8 +187,9 @@ Random class API
187
187
  Supported Python Versions
188
188
  -------------------------
189
189
 
190
- Python 3.6 through 3.9 is supported. It may or may not run on earlier Python
191
- 3.x versions, but these versions are no longer being tested.
190
+ Python >= 3.10 are supported.
191
+
192
+ Python versions < 3.10 might work, but have not been tested.
192
193
 
193
194
 
194
195
  -------------
@@ -20,7 +20,7 @@ cdef class BitColumnMatrix(object):
20
20
 
21
21
  cdef uint32_t columns[32]
22
22
  cdef size_t columns_len
23
-
23
+
24
24
  @staticmethod
25
25
  def unity(uint32_t n):
26
26
  cdef uint32_t value
@@ -124,7 +124,7 @@ cdef class Cong(object):
124
124
  This is a congruential generator with the widely used
125
125
  69069 multiplier: x[n]=69069x[n-1]+12345. It has
126
126
  period 2**32.
127
-
127
+
128
128
  The leading half of its 32 bits seem to pass tests,
129
129
  but bits in the last half are too regular. It fails
130
130
  tests for which those bits play a significant role.
@@ -689,7 +689,7 @@ cdef class MWC64(object):
689
689
 
690
690
  cdef class KISS(object):
691
691
  '''"Keep It Simple Stupid" random number generator
692
-
692
+
693
693
  It combines the MWC2, Cong, SHR3 generators. Period is
694
694
  about 2**123.
695
695
 
@@ -884,7 +884,7 @@ cdef class KISS(object):
884
884
 
885
885
  cdef class KISS2(object):
886
886
  '''"Keep It Simple Stupid" random number generator
887
-
887
+
888
888
  It combines the MWC64, Cong, SHR3 generators. Period
889
889
  is about 2**123.
890
890
 
@@ -1080,11 +1080,11 @@ cdef class KISS2(object):
1080
1080
 
1081
1081
  def lfsr_next_one_seed(seed_iter, uint32_t min_value_shift):
1082
1082
  """High-quality seeding for LFSR generators.
1083
-
1083
+
1084
1084
  The LFSR generator components discard a certain number of their lower bits
1085
1085
  when generating each output. The significant bits of their state must not
1086
1086
  all be zero. We must ensure that when seeding the generator.
1087
-
1087
+
1088
1088
  In case generators are seeded from an incrementing input (such as a system
1089
1089
  timer), and between increments only the lower bits may change, we would
1090
1090
  also like the lower bits of the input to change the initial state, and not
@@ -1114,11 +1114,11 @@ def lfsr_next_one_seed(seed_iter, uint32_t min_value_shift):
1114
1114
 
1115
1115
  def lfsr_validate_one_seed(seed, uint32_t min_value_shift):
1116
1116
  '''Validate seeds for LFSR generators
1117
-
1117
+
1118
1118
  The LFSR generator components discard a certain number of their lower bits
1119
1119
  when generating each output. The significant bits of their state must not
1120
1120
  all be zero. We must ensure that when seeding the generator.
1121
-
1121
+
1122
1122
  This is a light-weight validation of seeds, used from setstate().
1123
1123
  '''
1124
1124
  cdef uint32_t min_value
@@ -1341,7 +1341,7 @@ cdef class LFSR88(object):
1341
1341
 
1342
1342
  "Maximally Equidistributed Combined Tausworthe Generators"
1343
1343
  P. L'Ecuyer
1344
- Mathematics of Computation, 65, 213 (1996), 203–213.
1344
+ Mathematics of Computation, 65, 213 (1996), 203–213.
1345
1345
  '''
1346
1346
 
1347
1347
  cdef public uint32_t z1
@@ -0,0 +1,27 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0", "Cython>=3.0.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "simplerandom"
7
+ version = "0.13.7"
8
+ authors = [
9
+ { name = "Craig McQueen", email = "python@craig.mcqueen.id.au" },
10
+ ]
11
+ description = "Simple random number generators"
12
+ keywords = [ "simple", "random", "pseudorandom", "RNG", "PRNG" ]
13
+ readme = "README.rst"
14
+ requires-python = ">=3.6"
15
+ license = { file = "LICENSE.txt" }
16
+ classifiers = [
17
+ "Development Status :: 5 - Production/Stable",
18
+ "Intended Audience :: Developers",
19
+ "License :: OSI Approved :: MIT License",
20
+ "Programming Language :: Python :: 3",
21
+ "Programming Language :: Cython",
22
+ "Topic :: Scientific/Engineering :: Mathematics",
23
+ ]
24
+
25
+ [project.urls]
26
+ "Homepage" = "https://github.com/cmcqueen/simplerandom"
27
+ "Bug Tracker" = "https://github.com/cmcqueen/simplerandom/issues"
@@ -5,7 +5,7 @@
5
5
  # was previously created using Cython).
6
6
  # Set it to 'auto' to build with Cython if available, otherwise
7
7
  # from the C file.
8
- USE_CYTHON = False
8
+ USE_CYTHON = True
9
9
 
10
10
 
11
11
  import sys
@@ -13,8 +13,6 @@ import sys
13
13
  from setuptools import setup
14
14
  from setuptools import Extension
15
15
 
16
- import _version
17
-
18
16
  if USE_CYTHON:
19
17
  try:
20
18
  from Cython.Distutils import build_ext
@@ -43,36 +41,11 @@ else:
43
41
  ]
44
42
 
45
43
  setup(
46
- name='simplerandom',
47
- version=_version.__version__,
48
- description='Simple random number generators',
49
- author='Craig McQueen',
50
- author_email='python@craig.mcqueen.id.au',
51
- url='http://github.com/cmcqueen/simplerandom',
52
44
  packages=[ 'simplerandom', 'simplerandom.iterators', 'simplerandom.random', 'simplerandom._bitcolumnmatrix', 'simplerandom._version', ],
53
45
  package_dir={
54
- 'simplerandom' : 'python3/simplerandom',
55
- 'simplerandom._version' : '_version',
46
+ 'simplerandom' : 'src/simplerandom',
56
47
  },
57
48
  cmdclass = cmdclass,
58
49
  ext_modules=ext_modules,
59
-
60
- long_description=open('README.rst').read(),
61
-
62
- license="MIT",
63
- classifiers=[
64
- 'Development Status :: 5 - Production/Stable',
65
- 'Intended Audience :: Developers',
66
- 'License :: OSI Approved :: MIT License',
67
- 'Programming Language :: Python',
68
- 'Programming Language :: Python :: 3',
69
- 'Programming Language :: Python :: 3.6',
70
- 'Programming Language :: Python :: 3.7',
71
- 'Programming Language :: Python :: 3.8',
72
- 'Programming Language :: Python :: 3.9',
73
- 'Programming Language :: Cython',
74
- 'Topic :: Scientific/Engineering :: Mathematics',
75
- ],
76
- keywords='simple random pseudorandom RNG PRNG',
77
50
  )
78
51
 
@@ -1,23 +1,42 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: simplerandom
3
- Version: 0.13.5
3
+ Version: 0.13.7
4
4
  Summary: Simple random number generators
5
- Home-page: http://github.com/cmcqueen/simplerandom
6
- Author: Craig McQueen
7
- Author-email: python@craig.mcqueen.id.au
8
- License: MIT
9
- Keywords: simple random pseudorandom RNG PRNG
5
+ Author-email: Craig McQueen <python@craig.mcqueen.id.au>
6
+ License: ----------------------------------------------------------------------------
7
+ Copyright (c) 2011 Craig McQueen
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ of this software and associated documentation files (the "Software"), to deal
11
+ in the Software without restriction, including without limitation the rights
12
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ copies of the Software, and to permit persons to whom the Software is
14
+ furnished to do so, subject to the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be included in
17
+ all copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ SOFTWARE.
26
+ ----------------------------------------------------------------------------
27
+
28
+
29
+ Project-URL: Homepage, https://github.com/cmcqueen/simplerandom
30
+ Project-URL: Bug Tracker, https://github.com/cmcqueen/simplerandom/issues
31
+ Keywords: simple,random,pseudorandom,RNG,PRNG
10
32
  Classifier: Development Status :: 5 - Production/Stable
11
33
  Classifier: Intended Audience :: Developers
12
34
  Classifier: License :: OSI Approved :: MIT License
13
- Classifier: Programming Language :: Python
14
35
  Classifier: Programming Language :: Python :: 3
15
- Classifier: Programming Language :: Python :: 3.6
16
- Classifier: Programming Language :: Python :: 3.7
17
- Classifier: Programming Language :: Python :: 3.8
18
- Classifier: Programming Language :: Python :: 3.9
19
36
  Classifier: Programming Language :: Cython
20
37
  Classifier: Topic :: Scientific/Engineering :: Mathematics
38
+ Requires-Python: >=3.6
39
+ Description-Content-Type: text/x-rst
21
40
  License-File: LICENSE.txt
22
41
 
23
42
  =============
@@ -108,7 +127,7 @@ References
108
127
 
109
128
  .. [#lecuyer1999] | `Tables of Maximally-Equidistributed Combined LFSR Generators`__
110
129
  | Pierre L'Ecuyer
111
- | Mathematics of Computation, 68, 225 (1999), 261–269.
130
+ | Mathematics of Computation, 68, 225 (1999), 261–269.
112
131
 
113
132
  .. __:
114
133
  .. _Tables of Maximally-Equidistributed Combined LFSR Generators:
@@ -123,7 +142,7 @@ References
123
142
 
124
143
  .. [#lecuyer1996] | `Maximally Equidistributed Combined Tausworthe Generators`__
125
144
  | P. L'Ecuyer
126
- | Mathematics of Computation, 65, 213 (1996), 203–213.
145
+ | Mathematics of Computation, 65, 213 (1996), 203–213.
127
146
 
128
147
  .. __:
129
148
  .. _Maximally Equidistributed Combined Tausworthe Generators:
@@ -173,7 +192,7 @@ generators implement the standard Python ``random.Random`` API. Each generator
173
192
  uses the iterator of the same name in ``simplerandom.iterators`` to generate
174
193
  the random bits used to produce the random floats. The ``jumpahead()`` function
175
194
  (in the style of the Python 2.x API) is implemented in all cases, even though
176
- ``jumpahead()`` has officially been removed from the Python 3.x ``random`` API.
195
+ ``jumpahead()`` has officially been removed from the Python 3.x ``random`` API.
177
196
 
178
197
 
179
198
  -----
@@ -209,8 +228,9 @@ Random class API
209
228
  Supported Python Versions
210
229
  -------------------------
211
230
 
212
- Python 3.6 through 3.9 is supported. It may or may not run on earlier Python
213
- 3.x versions, but these versions are no longer being tested.
231
+ Python >= 3.10 are supported.
232
+
233
+ Python versions < 3.10 might work, but have not been tested.
214
234
 
215
235
 
216
236
  -------------
@@ -0,0 +1,22 @@
1
+ LICENSE.txt
2
+ MANIFEST.in
3
+ README.rst
4
+ pyproject.toml
5
+ setup.py
6
+ cython/_bitcolumnmatrix_cython.pyx
7
+ cython/_iterators_cython.pyx
8
+ cython/types.h
9
+ simplerandom.egg-info/PKG-INFO
10
+ simplerandom.egg-info/SOURCES.txt
11
+ simplerandom.egg-info/dependency_links.txt
12
+ simplerandom.egg-info/top_level.txt
13
+ src/simplerandom/__init__.py
14
+ src/simplerandom/_bitcolumnmatrix/__init__.py
15
+ src/simplerandom/_bitcolumnmatrix/_bitcolumnmatrix_py.py
16
+ src/simplerandom/_version/__init__.py
17
+ src/simplerandom/iterators/__init__.py
18
+ src/simplerandom/iterators/_iterators_py.py
19
+ src/simplerandom/iterators/test.py
20
+ src/simplerandom/random/__init__.py
21
+ src/simplerandom/random/_random_py.py
22
+ test/test_iterators.py
@@ -14,7 +14,7 @@ __all__ = [
14
14
 
15
15
  VERSION_MAJOR = 0
16
16
  VERSION_MINOR = 13
17
- VERSION_PATCH = 5
17
+ VERSION_PATCH = 7
18
18
 
19
19
  VERSION_STRING = '%s.%s.%s' % (VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH)
20
20
 
@@ -98,7 +98,7 @@ class Cong(object):
98
98
  This is a congruential generator with the widely used
99
99
  69069 multiplier: x[n]=69069x[n-1]+12345. It has
100
100
  period 2**32.
101
-
101
+
102
102
  The leading half of its 32 bits seem to pass tests,
103
103
  but bits in the last half are too regular. It fails
104
104
  tests for which those bits play a significant role.
@@ -664,7 +664,7 @@ class KISS(object):
664
664
 
665
665
  class KISS2(object):
666
666
  '''"Keep It Simple Stupid" random number generator
667
-
667
+
668
668
  It combines the MWC64, Cong, SHR3 generators. Period
669
669
  is about 2**123.
670
670
 
@@ -790,11 +790,11 @@ class KISS2(object):
790
790
 
791
791
  def lfsr_next_one_seed(seed_iter, min_value_shift):
792
792
  """High-quality seeding for LFSR generators.
793
-
793
+
794
794
  The LFSR generator components discard a certain number of their lower bits
795
795
  when generating each output. The significant bits of their state must not
796
796
  all be zero. We must ensure that when seeding the generator.
797
-
797
+
798
798
  In case generators are seeded from an incrementing input (such as a system
799
799
  timer), and between increments only the lower bits may change, we would
800
800
  also like the lower bits of the input to change the initial state, and not
@@ -821,11 +821,11 @@ def lfsr_next_one_seed(seed_iter, min_value_shift):
821
821
 
822
822
  def lfsr_validate_one_seed(seed, min_value_shift):
823
823
  '''Validate seeds for LFSR generators
824
-
824
+
825
825
  The LFSR generator components discard a certain number of their lower bits
826
826
  when generating each output. The significant bits of their state must not
827
827
  all be zero. We must ensure that when seeding the generator.
828
-
828
+
829
829
  This is a light-weight validation of state, used from setstate().
830
830
  '''
831
831
  min_value = 1 << min_value_shift
@@ -1005,7 +1005,7 @@ class LFSR88(object):
1005
1005
 
1006
1006
  "Maximally Equidistributed Combined Tausworthe Generators"
1007
1007
  P. L'Ecuyer
1008
- Mathematics of Computation, 65, 213 (1996), 203-213.
1008
+ Mathematics of Computation, 65, 213 (1996), 203-213.
1009
1009
  '''
1010
1010
  SIMPLERANDOM_MAX = 2**32 - 1
1011
1011
 
@@ -13,7 +13,7 @@ import simplerandom.iterators as sri
13
13
 
14
14
  class Marsaglia1999Tests(unittest.TestCase):
15
15
  """Tests as in Marsaglia 1999 post
16
-
16
+
17
17
  The Marsaglia 1999 post didn't explicitly set seed values for each RNG,
18
18
  but relied on the seed values that were side-effects of previous RNG
19
19
  executions. But we want to run each test as a stand-alone unit. So we
@@ -136,7 +136,7 @@ class CongTest(unittest.TestCase):
136
136
  self.rng.jumpahead(self.RNG_CYCLE_LEN)
137
137
  # See that state hasn't changed
138
138
  self.assertEqual(rng_state, self.rng.getstate())
139
-
139
+
140
140
  # Jump ahead 1, then back 1
141
141
  self.rng.jumpahead(1)
142
142
  # See that state HAS changed
@@ -144,7 +144,7 @@ class CongTest(unittest.TestCase):
144
144
  self.rng.jumpahead(-1)
145
145
  # See that state hasn't changed from original
146
146
  self.assertEqual(rng_state, self.rng.getstate())
147
-
147
+
148
148
  jumpahead_rng = self.RNG_CLASS()
149
149
  jumpahead_rng_start_state = self.rng.getstate()
150
150
  for i in range(10000):
@@ -201,7 +201,7 @@ class MWC64Test(KISS2Test):
201
201
 
202
202
  def test_seed_with_MSbit_set(self):
203
203
  """Test MWC64 with MS-bit of mwc_c seed set.
204
-
204
+
205
205
  This caused an exception in an earlier version of the Cython code
206
206
  (0.7.0) when built with Cython 0.14.
207
207
  """