<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/random/bit_generator.pyx, branch v1.20.3</title>
<subtitle>github.com: numpy/numpy.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/'/>
<entry>
<title>DOC: Fix RST/numpydoc standard.</title>
<updated>2020-07-10T20:24:30+00:00</updated>
<author>
<name>Matthias Bussonnier</name>
<email>bussonniermatthias@gmail.com</email>
</author>
<published>2020-07-10T20:24:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=7eb261d028f0f31c4851ea19f17c9c36c616009c'/>
<id>7eb261d028f0f31c4851ea19f17c9c36c616009c</id>
<content type='text'>
One of the header line was not long enough, make it the same length as
the title.

The section "Arguments" is usually called "Parameters". Update for
consistency.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
One of the header line was not long enough, make it the same length as
the title.

The section "Arguments" is usually called "Parameters". Update for
consistency.
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Ensure SeedSequence 0-padding does not collide with spawn keys</title>
<updated>2020-06-09T15:58:49+00:00</updated>
<author>
<name>Robert Kern</name>
<email>robert.kern@gmail.com</email>
</author>
<published>2020-06-09T15:58:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=7a82f14075eaf8f59ea3bb2594b71639e938611e'/>
<id>7a82f14075eaf8f59ea3bb2594b71639e938611e</id>
<content type='text'>
Fixes #16539

The implicit 0-padding that is done to small entropy inputs to make them the
size of the internal pool conflicts with the spawn keys, which start with an
appended 0.

In order to maintain stream compatibility with unspawned `SeedSequence`s, we
explicitly 0-pad short inputs out to the pool size only if the spawn key is
provided, and thus would trigger the bug. This should minimize the impact on
users that were not encountering the bug.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #16539

The implicit 0-padding that is done to small entropy inputs to make them the
size of the internal pool conflicts with the spawn keys, which start with an
appended 0.

In order to maintain stream compatibility with unspawned `SeedSequence`s, we
explicitly 0-pad short inputs out to the pool size only if the spawn key is
provided, and thus would trigger the bug. This should minimize the impact on
users that were not encountering the bug.
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: add missing c_distributions.pxd, enables cython use of random C-API (gh-15463)</title>
<updated>2020-03-16T22:02:06+00:00</updated>
<author>
<name>Matti Picus</name>
<email>matti.picus@gmail.com</email>
</author>
<published>2020-03-16T22:02:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=4f2b219647ae6a7928590be2b709894ae2403274'/>
<id>4f2b219647ae6a7928590be2b709894ae2403274</id>
<content type='text'>
xref gh-14778

As pointed out in the comment by @jamesthomasgriffin, we did not include a pxd file to expose the distribution functions documented in the random c-api. This PR adds a c_distributions.pxd file that exposes them.

Squashed commits:

* BUG: add missing c_distributions.pxd to enable cython use of random C-API

* ENH, TST: add npyrandom library like npymath, test cython use of it

* BUG: actually prefix f-string with f

* MAINT: fixes from review, add _bit_generato_bit_generator.pxd

* STY: fixes from review

* BLD: don't use nprandom library for mtrand legacy build

* TST: WindowsPath cannot be used in subprocess's list2cmdline

* MAINT, API: move _bit_generator to bit_generator

* DOC: add release note about moving bit_generator

* DOC, MAINT: fixes from review

* MAINT: redo dtype determination from review</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
xref gh-14778

As pointed out in the comment by @jamesthomasgriffin, we did not include a pxd file to expose the distribution functions documented in the random c-api. This PR adds a c_distributions.pxd file that exposes them.

Squashed commits:

* BUG: add missing c_distributions.pxd to enable cython use of random C-API

* ENH, TST: add npyrandom library like npymath, test cython use of it

* BUG: actually prefix f-string with f

* MAINT: fixes from review, add _bit_generato_bit_generator.pxd

* STY: fixes from review

* BLD: don't use nprandom library for mtrand legacy build

* TST: WindowsPath cannot be used in subprocess's list2cmdline

* MAINT, API: move _bit_generator to bit_generator

* DOC: add release note about moving bit_generator

* DOC, MAINT: fixes from review

* MAINT: redo dtype determination from review</pre>
</div>
</content>
</entry>
<entry>
<title>API: move bit_generator and generator to be private</title>
<updated>2019-10-11T12:08:46+00:00</updated>
<author>
<name>mattip</name>
<email>matti.picus@gmail.com</email>
</author>
<published>2019-10-02T19:26:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=260bf67640724915ffefd0a5a7133318ece149da'/>
<id>260bf67640724915ffefd0a5a7133318ece149da</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>API: rename common, bounded_integers -&gt; _common, _bounded_integers; cleanup</title>
<updated>2019-10-11T12:08:46+00:00</updated>
<author>
<name>mattip</name>
<email>matti.picus@gmail.com</email>
</author>
<published>2019-09-28T21:43:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=6fd7ec969feb980aebd33a8df7bccd873ade74bb'/>
<id>6fd7ec969feb980aebd33a8df7bccd873ade74bb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>API: rearrange the cython files in numpy.random</title>
<updated>2019-10-11T12:08:46+00:00</updated>
<author>
<name>mattip</name>
<email>matti.picus@gmail.com</email>
</author>
<published>2019-09-27T12:10:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=e527e71f11e79e03eee41441d383b046ddb68d8b'/>
<id>e527e71f11e79e03eee41441d383b046ddb68d8b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: random: Change type of SeedSequence.n_children_spawned to uint32_t.</title>
<updated>2019-08-20T13:04:20+00:00</updated>
<author>
<name>Warren Weckesser</name>
<email>warren.weckesser@gmail.com</email>
</author>
<published>2019-08-20T13:04:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=62b239a00b94a6dbcddafbd05d4169ccc0611a24'/>
<id>62b239a00b94a6dbcddafbd05d4169ccc0611a24</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: random: Fix import in example for _coerce_to_uint32_array.</title>
<updated>2019-08-20T12:13:14+00:00</updated>
<author>
<name>Warren Weckesser</name>
<email>warren.weckesser@gmail.com</email>
</author>
<published>2019-08-20T12:13:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=9050625c2d96e6aa6124a9bd53f7bdd8681676a6'/>
<id>9050625c2d96e6aa6124a9bd53f7bdd8681676a6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Ensure consistent interpretation of uint64 states. (#13861)</title>
<updated>2019-06-29T00:30:33+00:00</updated>
<author>
<name>Robert Kern</name>
<email>robert.kern@gmail.com</email>
</author>
<published>2019-06-29T00:30:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=e7383b5d5dff636ed92667a28751ce18f7086097'/>
<id>e7383b5d5dff636ed92667a28751ce18f7086097</id>
<content type='text'>
* BUG: test, fix for big-endian systems</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* BUG: test, fix for big-endian systems</pre>
</div>
</content>
</entry>
<entry>
<title>ENH: np.random.default_gen() (#13840)</title>
<updated>2019-06-28T13:24:39+00:00</updated>
<author>
<name>Robert Kern</name>
<email>robert.kern@gmail.com</email>
</author>
<published>2019-06-28T13:24:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=0ec7f12012bcb613857b3adef2b2d18310838894'/>
<id>0ec7f12012bcb613857b3adef2b2d18310838894</id>
<content type='text'>
* ENH: Rename seed_seq argument to seed and replace Generator() with default_gen()</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* ENH: Rename seed_seq argument to seed and replace Generator() with default_gen()</pre>
</div>
</content>
</entry>
</feed>
