Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 811866d96d7e52c94055a34b3f792ef0 > files > 60

flood-1.1-3.r719568.2mdv2010.0.i586.rpm

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>seed</title><meta name="generator" content="DocBook XSL Stylesheets V1.75.2" /><link rel="home" href="index.html" title="Flood manual" /><link rel="up" href="ch06.html" title="Chapter 6. Flood Configuration Elements" /><link rel="prev" href="re19.html" title="usefarmer" /><link rel="next" href="ch07.html" title="Chapter 7. Analyzing Flood output" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">seed</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="re19.html">Prev</a> </td><th width="60%" align="center">Chapter 6. Flood Configuration Elements</th><td width="20%" align="right"> <a accesskey="n" href="ch07.html">Next</a></td></tr></table><hr /></div><div class="refentry" title="seed"><a id="seed"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>seed — specifies fixed seed for PRNG</p></div><div class="refsynopsisdiv" title="synopsis"><h2>synopsis</h2><pre class="synopsis">&lt;seed&gt;INTEGER&lt;/seed&gt;</pre></div><div class="refsection" title="parent elements"><a id="id2555607"></a><h2>parent elements</h2><pre class="synopsis">
                    <a class="link" href="re01.html" title="flood">&lt;flood&gt;</a>
                </pre></div><div class="refsection" title="children elements"><a id="id2555624"></a><h2>children elements</h2><p>none.</p></div><div class="refsection" title="attributes"><a id="id2555634"></a><h2>attributes</h2><p>none.</p></div><div class="refsection" title="character data"><a id="id2555643"></a><h2>character data</h2><p>fixed seed for PRNG.</p></div><div class="refsection" title="description"><a id="id2555653"></a><h2>description</h2><p>
                During tests flood sometimes uses system PRNG (Pseudo Random
                Number Generator). For example, this happens when you use 
                <code class="envar">${=name}</code> construct. Since numbers returned by
                PRNG are different for every test, you can have situation in
                which the same set of URLS has very different results.
                Consider retrieval of article from database with such url:
                </p><pre class="screen">
&lt;url requesttemplate="http://www.example.com/show_art.php?id=${=aid}"/&gt;
                </pre><p>
                When you run the test for the first time, <code class="envar">aid</code>
                evaluates to 6, and results in a 20 KB article. However at the
                second run <code class="envar">aid</code> evaluates to 216 which can
                trigger a more complex query, or return a larger article (say
                108 KB). You used the same config, but results are different.
                If you use &lt;seed&gt; element with a fixed value (like 23,
                48 or 84) you can expect PRNG to generate the same number with
                every run.
                </p></div><div class="refsection" title="examples"><a id="id2555701"></a><h2>examples</h2><pre class="screen">
   &lt;seed&gt;23&lt;/seed&gt;
                </pre></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="re19.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch06.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch07.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">usefarmer </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 7. Analyzing Flood output</td></tr></table></div></body></html>