<!--
RSS generated by JIRA (4.4#649-r158309) at Sun May 19 21:15:28 CDT 2013

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 add field=key&field=summary to the URL of your request.
For example:
http://dev.clojure.org/jira/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+TGEN+AND+status+%3D+Closed+ORDER+BY+priority+DESC&tempMax=1000&field=key&field=summary
-->
<!-- If you wish to do custom client-side styling of RSS, uncomment this:
<?xml-stylesheet href="http://dev.clojure.org/jira/styles/jiraxml2html.xsl" type="text/xsl"?>
-->
<rss version="0.92">
    <channel>
        <title>Clojure JIRA</title>
        <link>http://dev.clojure.org/jira/secure/IssueNavigator.jspa?reset=true&amp;jqlQuery=project+%3D+TGEN+AND+status+%3D+Closed+ORDER+BY+priority+DESC</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="1" total="1"/>
                <build-info>
            <version>4.4</version>
            <build-number>649</build-number>
            <build-date>25-07-2011</build-date>
        </build-info>
<item>
            <title>[TGEN-3] binding *seed* does not change the basis</title>
                <link>http://dev.clojure.org/jira/browse/TGEN-3</link>
                <project id="10081" key="TGEN">test.generative</project>
                        <description>&lt;p&gt;This is what I&apos;m observing:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;user=&amp;gt; (binding [gen/*seed* 7] (gen/uniform))
-6880819372607069048
user=&amp;gt; (binding [gen/*seed* 7] (gen/uniform))
5065957067589062886
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This is what I&apos;m expecting:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;user=&amp;gt; (binding [gen/*seed* 7] (gen/uniform))
-4967725919621401576
user=&amp;gt; (binding [gen/*seed* 7] (gen/uniform))
-4967725919621401576
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The work-around is to bind &lt;tt&gt;&amp;#42;rnd&amp;#42;&lt;/tt&gt; to a new &lt;tt&gt;java.util.Random&lt;/tt&gt; constructed appropriately:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;(binding [gen/*rnd* (java.util.Random. 7)] (gen/uniform))
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I&apos;m not sure: Is this is a bug in the doc string of &lt;tt&gt;&amp;#42;seed&amp;#42;&lt;/tt&gt;? Is the bug the very existence of &lt;tt&gt;&amp;#42;seed&amp;#42;&lt;/tt&gt;? (&lt;tt&gt;&amp;#42;seed&amp;#42;&lt;/tt&gt; is never used.) Should the doc-string for &lt;tt&gt;&amp;#42;rnd&amp;#42;&lt;/tt&gt; suggest something like the code above as a way to get a consistent basis? Should generators provide a &lt;tt&gt;with-seed&lt;/tt&gt; macro to do this for us?&lt;/p&gt;</description>
                <environment></environment>
            <key id="15752">TGEN-3</key>
            <summary>binding *seed* does not change the basis</summary>
                <type id="1" iconUrl="http://dev.clojure.org/jira/images/icons/bug.gif">Defect</type>
                                <priority id="3" iconUrl="http://dev.clojure.org/jira/images/icons/priority_major.gif">Major</priority>
                    <status id="6" iconUrl="http://dev.clojure.org/jira/images/icons/status_closed.gif">Closed</status>
                    <resolution id="1">Completed</resolution>
                                <assignee username="stu">Stuart Halloway</assignee>
                                <reporter username="bsmith.occs@gmail.com">Ben Smith-Mannschott</reporter>
                        <labels>
                    </labels>
                <created>Sat, 13 Oct 2012 07:45:14 -0500</created>
                <updated>Sun, 3 Feb 2013 07:13:49 -0600</updated>
                    <resolved>Sun, 3 Feb 2013 07:13:49 -0600</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="30535" author="stu" created="Sun, 3 Feb 2013 07:13:49 -0600"  >&lt;p&gt;this is fixed on master in the data.generators project&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                            <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Global Rank</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                                                                                            </customfields>
    </item>
</channel>
</rss>