<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:38:06 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[GODRIVER-2223] Use &quot;math/rand&quot; instead of &quot;crypto/rand&quot; for UUID generator</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-2223</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;The &lt;tt&gt;&quot;x/mongo/driver/uuid&lt;/tt&gt; package currently uses &lt;tt&gt;&quot;crypto/rand&quot;&lt;/tt&gt; as its randomness source for generating UUIDs. The cryptographically secure randomness source on some systems can be extremely slow. Also, the &lt;a href=&quot;https://github.com/mongodb/specifications/blob/master/source/sessions/driver-sessions.rst#generating-a-session-id-locally&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;driver sessions specification&lt;/a&gt; specifically suggests using a pseudo-random number generator.&lt;/p&gt;

&lt;p&gt;See a &lt;a href=&quot;https://github.com/cockroachdb/cockroach/issues/30236&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;CockroachDB discussion on &quot;crypto/rand&quot; performance&lt;/a&gt; for more context.&lt;/p&gt;

&lt;p&gt;Definition of done:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;tt&gt;&quot;x/mongo/driver/uuid&lt;/tt&gt; uses &lt;tt&gt;&quot;math/rand&quot;&lt;/tt&gt; instead of &lt;tt&gt;&quot;crypto/rand&quot;&lt;/tt&gt;.&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;&quot;x/mongo/driver/uuid&lt;/tt&gt; uses a package-specific random reader, not the global random reader.&lt;/li&gt;
	&lt;li&gt;Seed the &lt;tt&gt;&quot;math/rand&quot;&lt;/tt&gt; pseudo-random number generator with the current time.&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="1921732">GODRIVER-2223</key>
            <summary>Use &quot;math/rand&quot; instead of &quot;crypto/rand&quot; for UUID generator</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="13201">Fixed</resolution>
                                        <assignee username="matt.dale@mongodb.com">Matt Dale</assignee>
                                    <reporter username="matt.dale@mongodb.com">Matt Dale</reporter>
                        <labels>
                    </labels>
                <created>Tue, 9 Nov 2021 20:17:15 +0000</created>
                <updated>Sat, 28 Oct 2023 11:37:41 +0000</updated>
                            <resolved>Fri, 12 Nov 2021 17:17:45 +0000</resolved>
                                                    <fixVersion>1.8.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4193512" author="xgen-internal-githook" created="Tue, 16 Nov 2021 22:37:09 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Matt Dale&apos;, &apos;email&apos;: &apos;9760375+matthewdale@users.noreply.github.com&apos;, &apos;username&apos;: &apos;matthewdale&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-2223&quot; title=&quot;Use &amp;quot;math/rand&amp;quot; instead of &amp;quot;crypto/rand&amp;quot; for UUID generator&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-2223&quot;&gt;&lt;del&gt;GODRIVER-2223&lt;/del&gt;&lt;/a&gt; Fix data races caused by unsynchronized access to rand.Rand instances. (#808)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/10abf0f63e0cd655ad26d0294540e05138138c1b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/10abf0f63e0cd655ad26d0294540e05138138c1b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4186078" author="xgen-internal-githook" created="Fri, 12 Nov 2021 17:15:39 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Matt Dale&apos;, &apos;email&apos;: &apos;9760375+matthewdale@users.noreply.github.com&apos;, &apos;username&apos;: &apos;matthewdale&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-2223&quot; title=&quot;Use &amp;quot;math/rand&amp;quot; instead of &amp;quot;crypto/rand&amp;quot; for UUID generator&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-2223&quot;&gt;&lt;del&gt;GODRIVER-2223&lt;/del&gt;&lt;/a&gt; Use separate, seeded pseudo-random sources for each package. (#803)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/5cab184acf1bc253d0aa51b222bfecdf8927ff8a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/5cab184acf1bc253d0aa51b222bfecdf8927ff8a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4184530" author="JIRAUSER1259527" created="Thu, 11 Nov 2021 23:11:49 +0000"  >&lt;p&gt;PR: &lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/pull/803&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/pull/803&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Slight deviation from the definition of done:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Uses a separate pseudo-random number source for each package that currently uses &quot;math/rand&quot; instead of seeding the global source.&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2004618">GODRIVER-2349</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2011863">GODRIVER-2361</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hzt56v:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>