<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>23029</bug_id>
          
          <creation_ts>2008-12-29 18:02:18 -0800</creation_ts>
          <short_desc>REGRESSION (r39337): jsfunfuzz generates identical test files</short_desc>
          <delta_ts>2008-12-30 05:10:52 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Oliver Hunt">oliver</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>zimmermann</cc>
    
    <cc>zwarich</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>103755</commentid>
    <comment_count>0</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2008-12-29 18:02:18 -0800</bug_when>
    <thetext>jsfunfuzz uses Math.random() to generate random test resutls.  Prior to squirrelfish it generated different results for every test file.  Now the files are all identical

12/29/08 5:59 PM Oliver Hunt:
The unification of the random number generation in r39337 made random number generation always start with the same seed in JSC.  This is non-standard behaviour based on both our old behaviour and that of other browsers.

&lt;rdar://problem/6469185&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103765</commentid>
    <comment_count>1</comment_count>
    <who name="Cameron Zwarich (cpst)">zwarich</who>
    <bug_when>2008-12-29 21:11:49 -0800</bug_when>
    <thetext>What&apos;s a good fix for this problem?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103766</commentid>
    <comment_count>2</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2008-12-29 21:23:52 -0800</bug_when>
    <thetext>Bad Niko, seeding random but then using rand()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103767</commentid>
    <comment_count>3</comment_count>
    <who name="Cameron Zwarich (cpst)">zwarich</who>
    <bug_when>2008-12-29 21:39:16 -0800</bug_when>
    <thetext>Fixed in r39507:

http://trac.webkit.org/changeset/39507
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103785</commentid>
    <comment_count>4</comment_count>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2008-12-30 05:10:52 -0800</bug_when>
    <thetext>Ouch, thanks a lot for fixing Cameron :-)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>