<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/ruby/test_rand.rb, branch v3_4_9</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>Avoid illegal pointer</title>
<updated>2024-11-28T18:01:46+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2024-11-28T17:16:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=50a34637a4bdd64a709937f09c839195a2b1d967'/>
<id>50a34637a4bdd64a709937f09c839195a2b1d967</id>
<content type='text'>
When loading a crafted marshal data of Random, a pointer to an illegal
address was created. I don't think there is any harm since the data is
normalized before access, but just to be safe, I add a check to make it
an error.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When loading a crafted marshal data of Random, a pointer to an illegal
address was created. I don't think there is any harm since the data is
normalized before access, but just to be safe, I add a check to make it
an error.
</pre>
</div>
</content>
</entry>
<entry>
<title>[Bug #19100] Add `init_int32` function to `rb_random_interface_t`</title>
<updated>2022-11-10T03:06:13+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-11-09T10:36:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=b7e8876704648cee6866591ac1aca7a54faff742'/>
<id>b7e8876704648cee6866591ac1aca7a54faff742</id>
<content type='text'>
Distinguish initialization by single word from initialization by
array.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Distinguish initialization by single word from initialization by
array.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove deprecated Random::DEFAULT [Feature #17351]</title>
<updated>2022-01-01T09:55:52+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-01-01T02:36:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=fae0b664315c23ef7db451f6241d256c12217051'/>
<id>fae0b664315c23ef7db451f6241d256c12217051</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Deprecate Random::DEFAULT</title>
<updated>2020-12-14T19:29:50+00:00</updated>
<author>
<name>Benoit Daloze</name>
<email>eregontp@gmail.com</email>
</author>
<published>2020-12-14T19:24:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f5c89c1660afd3a89514125aad579c0a96990c4b'/>
<id>f5c89c1660afd3a89514125aad579c0a96990c4b</id>
<content type='text'>
* Closes [Feature #17351].
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Closes [Feature #17351].
</pre>
</div>
</content>
</entry>
<entry>
<title>per-ractor Random::DEFAULT</title>
<updated>2020-11-27T08:03:30+00:00</updated>
<author>
<name>Koichi Sasada</name>
<email>ko1@atdot.net</email>
</author>
<published>2020-11-25T19:25:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=2db2fb9f6c742d5bd0019ccd11c7a375e1b12c0b'/>
<id>2db2fb9f6c742d5bd0019ccd11c7a375e1b12c0b</id>
<content type='text'>
Random generators are not Ractor-safe, so we need to prepare
per-ractor default random genearators. This patch set
`Random::DEFAULT = Randm` (not a Random instance, but the Random
class) and singleton methods like `Random.rand()` use a per-ractor
random generator.

[Feature #17322]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Random generators are not Ractor-safe, so we need to prepare
per-ractor default random genearators. This patch set
`Random::DEFAULT = Randm` (not a Random instance, but the Random
class) and singleton methods like `Random.rand()` use a per-ractor
random generator.

[Feature #17322]
</pre>
</div>
</content>
</entry>
<entry>
<title>Removed useless implementation tests</title>
<updated>2020-05-17T10:03:05+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2020-05-17T10:03:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=bd8aa047fc506b18d51fd791b8920d1e3bc72354'/>
<id>bd8aa047fc506b18d51fd791b8920d1e3bc72354</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Removed PRNG implementation details from the test</title>
<updated>2020-05-17T09:10:18+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2020-05-17T06:35:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=dc57136fd32dc0e86fbbf36f216e4149c9f121c8'/>
<id>dc57136fd32dc0e86fbbf36f216e4149c9f121c8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "srand() should not run in tests."</title>
<updated>2020-01-28T15:56:51+00:00</updated>
<author>
<name>Koichi Sasada</name>
<email>ko1@atdot.net</email>
</author>
<published>2020-01-28T15:55:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=650f152d2f5ed929c76cd7e7cf17270e53ac346c'/>
<id>650f152d2f5ed929c76cd7e7cf17270e53ac346c</id>
<content type='text'>
This reverts commit 4d132fa130e16eeb4af4177cfaccc00e05e2f864.

There are discussions about using srand() in tests.
I'll write a ticket about it and continue to discuss.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 4d132fa130e16eeb4af4177cfaccc00e05e2f864.

There are discussions about using srand() in tests.
I'll write a ticket about it and continue to discuss.
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "remove debug code."</title>
<updated>2020-01-28T15:55:11+00:00</updated>
<author>
<name>Koichi Sasada</name>
<email>ko1@atdot.net</email>
</author>
<published>2020-01-28T15:55:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0cfba9cdd9c18b0245b088ed5b460f0d6f90d586'/>
<id>0cfba9cdd9c18b0245b088ed5b460f0d6f90d586</id>
<content type='text'>
This reverts commit 65768c80beb64a14c3e918f8ed5e41e9349025d0.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 65768c80beb64a14c3e918f8ed5e41e9349025d0.
</pre>
</div>
</content>
</entry>
<entry>
<title>remove debug code.</title>
<updated>2020-01-28T09:29:42+00:00</updated>
<author>
<name>Koichi Sasada</name>
<email>ko1@atdot.net</email>
</author>
<published>2020-01-28T09:29:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=65768c80beb64a14c3e918f8ed5e41e9349025d0'/>
<id>65768c80beb64a14c3e918f8ed5e41e9349025d0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
