rfuzz 0.8 → 0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. data/Rakefile +1 -1
  2. data/doc/rdoc/classes/RFuzz.html +1 -1
  3. data/doc/rdoc/classes/RFuzz/Browser.html +15 -15
  4. data/doc/rdoc/classes/RFuzz/Browser.src/M000084.html +12 -10
  5. data/doc/rdoc/classes/RFuzz/Browser.src/M000085.html +10 -11
  6. data/doc/rdoc/classes/RFuzz/Browser.src/M000086.html +24 -0
  7. data/doc/rdoc/classes/RFuzz/HttpClient.html +72 -64
  8. data/doc/rdoc/classes/RFuzz/HttpClient.src/M000020.html +12 -21
  9. data/doc/rdoc/classes/RFuzz/HttpClient.src/M000021.html +21 -15
  10. data/doc/rdoc/classes/RFuzz/HttpClient.src/M000022.html +15 -17
  11. data/doc/rdoc/classes/RFuzz/HttpClient.src/M000023.html +17 -22
  12. data/doc/rdoc/classes/RFuzz/HttpClient.src/M000024.html +22 -9
  13. data/doc/rdoc/classes/RFuzz/HttpClient.src/M000025.html +9 -31
  14. data/doc/rdoc/classes/RFuzz/HttpClient.src/M000026.html +31 -25
  15. data/doc/rdoc/classes/RFuzz/HttpClient.src/M000027.html +25 -13
  16. data/doc/rdoc/classes/RFuzz/HttpClient.src/M000028.html +13 -21
  17. data/doc/rdoc/classes/RFuzz/HttpClient.src/M000029.html +21 -5
  18. data/doc/rdoc/classes/RFuzz/HttpClient.src/M000030.html +5 -13
  19. data/doc/rdoc/classes/RFuzz/HttpClient.src/M000031.html +26 -0
  20. data/doc/rdoc/classes/RFuzz/HttpResponse.html +15 -15
  21. data/doc/rdoc/classes/RFuzz/HttpResponse.src/M000032.html +9 -5
  22. data/doc/rdoc/classes/RFuzz/HttpResponse.src/M000033.html +5 -5
  23. data/doc/rdoc/classes/RFuzz/HttpResponse.src/M000034.html +18 -0
  24. data/doc/rdoc/classes/RFuzz/Notifier.html +36 -36
  25. data/doc/rdoc/classes/RFuzz/Notifier.src/M000059.html +4 -4
  26. data/doc/rdoc/classes/RFuzz/Notifier.src/M000060.html +4 -4
  27. data/doc/rdoc/classes/RFuzz/Notifier.src/M000061.html +4 -4
  28. data/doc/rdoc/classes/RFuzz/Notifier.src/M000062.html +4 -4
  29. data/doc/rdoc/classes/RFuzz/Notifier.src/M000063.html +4 -4
  30. data/doc/rdoc/classes/RFuzz/Notifier.src/M000064.html +4 -4
  31. data/doc/rdoc/classes/RFuzz/Notifier.src/{M000058.html → M000065.html} +4 -4
  32. data/doc/rdoc/classes/RFuzz/PushBackIO.html +55 -40
  33. data/doc/rdoc/classes/RFuzz/PushBackIO.src/M000010.html +2 -1
  34. data/doc/rdoc/classes/RFuzz/PushBackIO.src/M000011.html +6 -5
  35. data/doc/rdoc/classes/RFuzz/PushBackIO.src/M000012.html +8 -6
  36. data/doc/rdoc/classes/RFuzz/PushBackIO.src/M000013.html +7 -5
  37. data/doc/rdoc/classes/RFuzz/PushBackIO.src/M000014.html +6 -31
  38. data/doc/rdoc/classes/RFuzz/PushBackIO.src/M000015.html +32 -5
  39. data/doc/rdoc/classes/RFuzz/PushBackIO.src/M000016.html +6 -5
  40. data/doc/rdoc/classes/RFuzz/PushBackIO.src/M000017.html +6 -5
  41. data/doc/rdoc/classes/RFuzz/PushBackIO.src/M000018.html +5 -9
  42. data/doc/rdoc/classes/RFuzz/PushBackIO.src/M000019.html +22 -0
  43. data/doc/rdoc/classes/RFuzz/RandomGenerator.html +62 -62
  44. data/doc/rdoc/classes/RFuzz/RandomGenerator.src/M000047.html +8 -10
  45. data/doc/rdoc/classes/RFuzz/RandomGenerator.src/M000048.html +23 -0
  46. data/doc/rdoc/classes/RFuzz/RandomGenerator.src/M000051.html +9 -7
  47. data/doc/rdoc/classes/RFuzz/RandomGenerator.src/M000052.html +7 -9
  48. data/doc/rdoc/classes/RFuzz/RandomGenerator.src/M000053.html +9 -7
  49. data/doc/rdoc/classes/RFuzz/RandomGenerator.src/M000054.html +7 -5
  50. data/doc/rdoc/classes/RFuzz/RandomGenerator.src/M000055.html +5 -5
  51. data/doc/rdoc/classes/RFuzz/RandomGenerator.src/M000056.html +5 -9
  52. data/doc/rdoc/classes/RFuzz/RandomGenerator.src/M000057.html +9 -5
  53. data/doc/rdoc/classes/RFuzz/RandomGenerator.src/M000058.html +18 -0
  54. data/doc/rdoc/classes/RFuzz/Sampler.html +60 -60
  55. data/doc/rdoc/classes/RFuzz/Sampler.src/M000072.html +6 -10
  56. data/doc/rdoc/classes/RFuzz/Sampler.src/M000073.html +10 -13
  57. data/doc/rdoc/classes/RFuzz/Sampler.src/M000074.html +13 -5
  58. data/doc/rdoc/classes/RFuzz/Sampler.src/M000075.html +5 -5
  59. data/doc/rdoc/classes/RFuzz/Sampler.src/M000076.html +5 -5
  60. data/doc/rdoc/classes/RFuzz/Sampler.src/M000077.html +5 -5
  61. data/doc/rdoc/classes/RFuzz/Sampler.src/M000078.html +5 -6
  62. data/doc/rdoc/classes/RFuzz/Sampler.src/M000079.html +6 -5
  63. data/doc/rdoc/classes/RFuzz/Sampler.src/M000080.html +5 -10
  64. data/doc/rdoc/classes/RFuzz/Sampler.src/M000081.html +10 -5
  65. data/doc/rdoc/classes/RFuzz/Sampler.src/M000082.html +5 -7
  66. data/doc/rdoc/classes/RFuzz/Sampler.src/M000083.html +20 -0
  67. data/doc/rdoc/classes/RFuzz/Session.html +63 -63
  68. data/doc/rdoc/classes/RFuzz/Session.src/M000035.html +18 -5
  69. data/doc/rdoc/classes/RFuzz/Session.src/M000036.html +5 -5
  70. data/doc/rdoc/classes/RFuzz/Session.src/M000037.html +5 -21
  71. data/doc/rdoc/classes/RFuzz/Session.src/M000038.html +21 -6
  72. data/doc/rdoc/classes/RFuzz/Session.src/M000039.html +6 -6
  73. data/doc/rdoc/classes/RFuzz/Session.src/M000040.html +6 -13
  74. data/doc/rdoc/classes/RFuzz/Session.src/M000041.html +13 -16
  75. data/doc/rdoc/classes/RFuzz/Session.src/M000042.html +16 -6
  76. data/doc/rdoc/classes/RFuzz/Session.src/M000043.html +6 -5
  77. data/doc/rdoc/classes/RFuzz/Session.src/M000044.html +5 -5
  78. data/doc/rdoc/classes/RFuzz/Session.src/M000045.html +5 -10
  79. data/doc/rdoc/classes/RFuzz/Session.src/M000046.html +23 -0
  80. data/doc/rdoc/classes/RFuzz/StatsTracker.html +32 -32
  81. data/doc/rdoc/classes/RFuzz/StatsTracker.src/M000066.html +6 -6
  82. data/doc/rdoc/classes/RFuzz/StatsTracker.src/M000067.html +6 -5
  83. data/doc/rdoc/classes/RFuzz/StatsTracker.src/M000068.html +5 -5
  84. data/doc/rdoc/classes/RFuzz/StatsTracker.src/M000069.html +5 -15
  85. data/doc/rdoc/classes/RFuzz/StatsTracker.src/M000070.html +15 -5
  86. data/doc/rdoc/classes/RFuzz/StatsTracker.src/{M000065.html → M000071.html} +5 -6
  87. data/doc/rdoc/created.rid +1 -1
  88. data/doc/rdoc/files/lib/rfuzz/client_rb.html +1 -1
  89. data/doc/rdoc/files/lib/rfuzz/pushbackio_rb.html +1 -1
  90. data/doc/rdoc/files/lib/rfuzz/session_rb.html +1 -1
  91. data/doc/rdoc/fr_method_index.html +76 -75
  92. data/examples/kill_routes.rb +5 -4
  93. data/examples/mongrel_test_suite/test/rails/put.rb +14 -7
  94. data/examples/random_sockets.rb +37 -0
  95. data/examples/randomizer.rb +19 -0
  96. data/ext/http11_client/http11_parser.c +33 -34
  97. data/lib/rfuzz/client.rb +1 -1
  98. data/lib/rfuzz/pushbackio.rb +16 -2
  99. data/lib/rfuzz/session.rb +1 -1
  100. metadata +14 -11
  101. data/doc/rdoc/classes/RFuzz/Browser.src/M000083.html +0 -25
  102. data/doc/rdoc/classes/RFuzz/HttpClient.src/M000019.html +0 -25
  103. data/doc/rdoc/classes/RFuzz/HttpResponse.src/M000031.html +0 -22
  104. data/doc/rdoc/classes/RFuzz/RandomGenerator.src/M000046.html +0 -21
  105. data/doc/rdoc/classes/RFuzz/RandomGenerator.src/M000050.html +0 -22
  106. data/doc/rdoc/classes/RFuzz/Sampler.src/M000071.html +0 -19
  107. data/doc/rdoc/classes/RFuzz/Session.src/M000034.html +0 -31
@@ -5,19 +5,17 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>hash_of (RFuzz::RandomGenerator)</title>
8
+ <title>new (RFuzz::RandomGenerator)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/rfuzz/random.rb, line 31</span>
14
- 31: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">hash_of</span>(<span class="ruby-identifier">count</span>,<span class="ruby-identifier">length</span>=<span class="ruby-value">5</span>,<span class="ruby-identifier">type</span>=<span class="ruby-ivar">@type</span>)
15
- 32: <span class="ruby-identifier">list</span> = []
16
- 33: <span class="ruby-identifier">count</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span>
17
- 34: <span class="ruby-identifier">list</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">Hash</span>[<span class="ruby-operator">*</span><span class="ruby-identifier">send</span>(<span class="ruby-identifier">type</span>,<span class="ruby-identifier">length</span><span class="ruby-operator">*</span><span class="ruby-value">2</span>)]
18
- 35: <span class="ruby-keyword kw">end</span>
19
- 36:
20
- 37: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">list</span>
21
- 38: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/rfuzz/random.rb, line 16</span>
14
+ 16: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">dict</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">type</span>=<span class="ruby-identifier">:words</span>)
15
+ 17: <span class="ruby-comment cmt"># NOT meant to be secure so chill</span>
16
+ 18: <span class="ruby-ivar">@rnd</span> = <span class="ruby-constant">FuzzRnd</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">&quot;#{self.inspect}&quot;</span>)
17
+ 19: <span class="ruby-ivar">@dict</span> = <span class="ruby-identifier">dict</span>
18
+ 20: <span class="ruby-ivar">@type</span> = <span class="ruby-identifier">type</span>
19
+ 21: <span class="ruby-keyword kw">end</span></pre>
22
20
  </body>
23
21
  </html>
@@ -0,0 +1,23 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>hash_of (RFuzz::RandomGenerator)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre> <span class="ruby-comment cmt"># File lib/rfuzz/random.rb, line 31</span>
14
+ 31: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">hash_of</span>(<span class="ruby-identifier">count</span>,<span class="ruby-identifier">length</span>=<span class="ruby-value">5</span>,<span class="ruby-identifier">type</span>=<span class="ruby-ivar">@type</span>)
15
+ 32: <span class="ruby-identifier">list</span> = []
16
+ 33: <span class="ruby-identifier">count</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span>
17
+ 34: <span class="ruby-identifier">list</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">Hash</span>[<span class="ruby-operator">*</span><span class="ruby-identifier">send</span>(<span class="ruby-identifier">type</span>,<span class="ruby-identifier">length</span><span class="ruby-operator">*</span><span class="ruby-value">2</span>)]
18
+ 35: <span class="ruby-keyword kw">end</span>
19
+ 36:
20
+ 37: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">list</span>
21
+ 38: <span class="ruby-keyword kw">end</span></pre>
22
+ </body>
23
+ </html>
@@ -5,16 +5,18 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>words (RFuzz::RandomGenerator)</title>
8
+ <title>uris (RFuzz::RandomGenerator)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/rfuzz/random.rb, line 55</span>
14
- 55: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">words</span>(<span class="ruby-identifier">count</span>=<span class="ruby-value">1</span>)
15
- 56: <span class="ruby-identifier">raise</span> <span class="ruby-value str">&quot;You need a dictionary.&quot;</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@dict</span>
16
- 57: <span class="ruby-identifier">w</span> = <span class="ruby-identifier">ints</span>(<span class="ruby-identifier">count</span>, <span class="ruby-ivar">@dict</span>.<span class="ruby-identifier">length</span>)
17
- 58: <span class="ruby-identifier">w</span>.<span class="ruby-identifier">collect</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span> <span class="ruby-ivar">@dict</span>[<span class="ruby-identifier">i</span>]}
18
- 59: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/rfuzz/random.rb, line 45</span>
14
+ 45: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">uris</span>(<span class="ruby-identifier">count</span>,<span class="ruby-identifier">length</span>=<span class="ruby-value">100</span>)
15
+ 46: <span class="ruby-identifier">ulist</span> = []
16
+ 47: <span class="ruby-identifier">count</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span>
17
+ 48: <span class="ruby-identifier">ulist</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;/&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">words</span>(<span class="ruby-identifier">num</span>(<span class="ruby-identifier">length</span>)).<span class="ruby-identifier">join</span>(<span class="ruby-value str">&quot;/&quot;</span>).<span class="ruby-identifier">tr</span>(<span class="ruby-value str">&quot;'&quot;</span>,<span class="ruby-value str">&quot;&quot;</span>)
18
+ 49: <span class="ruby-keyword kw">end</span>
19
+ 50: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">ulist</span>
20
+ 51: <span class="ruby-keyword kw">end</span></pre>
19
21
  </body>
20
22
  </html>
@@ -5,18 +5,16 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>base64 (RFuzz::RandomGenerator)</title>
8
+ <title>words (RFuzz::RandomGenerator)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/rfuzz/random.rb, line 65</span>
14
- 65: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">base64</span>(<span class="ruby-identifier">count</span>,<span class="ruby-identifier">length</span>=<span class="ruby-value">100</span>)
15
- 66: <span class="ruby-identifier">list</span> = []
16
- 67: <span class="ruby-identifier">count</span>.<span class="ruby-identifier">times</span> {
17
- 68: <span class="ruby-identifier">list</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">Base64</span>.<span class="ruby-identifier">encode64</span>(<span class="ruby-ivar">@rnd</span>.<span class="ruby-identifier">data</span>(<span class="ruby-identifier">num</span>(<span class="ruby-identifier">length</span>)))
18
- 69: }
19
- 70: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">list</span>
20
- 71: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/rfuzz/random.rb, line 55</span>
14
+ 55: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">words</span>(<span class="ruby-identifier">count</span>=<span class="ruby-value">1</span>)
15
+ 56: <span class="ruby-identifier">raise</span> <span class="ruby-value str">&quot;You need a dictionary.&quot;</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@dict</span>
16
+ 57: <span class="ruby-identifier">w</span> = <span class="ruby-identifier">ints</span>(<span class="ruby-identifier">count</span>, <span class="ruby-ivar">@dict</span>.<span class="ruby-identifier">length</span>)
17
+ 58: <span class="ruby-identifier">w</span>.<span class="ruby-identifier">collect</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span> <span class="ruby-ivar">@dict</span>[<span class="ruby-identifier">i</span>]}
18
+ 59: <span class="ruby-keyword kw">end</span></pre>
21
19
  </body>
22
20
  </html>
@@ -5,16 +5,18 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>byte_array (RFuzz::RandomGenerator)</title>
8
+ <title>base64 (RFuzz::RandomGenerator)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/rfuzz/random.rb, line 76</span>
14
- 76: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">byte_array</span>(<span class="ruby-identifier">count</span>,<span class="ruby-identifier">length</span>=<span class="ruby-value">100</span>)
15
- 77: <span class="ruby-identifier">list</span> = []
16
- 78: <span class="ruby-identifier">count</span>.<span class="ruby-identifier">times</span> { <span class="ruby-identifier">list</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-ivar">@rnd</span>.<span class="ruby-identifier">data</span>(<span class="ruby-identifier">num</span>(<span class="ruby-identifier">length</span>)) }
17
- 79: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">list</span>
18
- 80: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/rfuzz/random.rb, line 65</span>
14
+ 65: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">base64</span>(<span class="ruby-identifier">count</span>,<span class="ruby-identifier">length</span>=<span class="ruby-value">100</span>)
15
+ 66: <span class="ruby-identifier">list</span> = []
16
+ 67: <span class="ruby-identifier">count</span>.<span class="ruby-identifier">times</span> {
17
+ 68: <span class="ruby-identifier">list</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">Base64</span>.<span class="ruby-identifier">encode64</span>(<span class="ruby-ivar">@rnd</span>.<span class="ruby-identifier">data</span>(<span class="ruby-identifier">num</span>(<span class="ruby-identifier">length</span>)))
18
+ 69: }
19
+ 70: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">list</span>
20
+ 71: <span class="ruby-keyword kw">end</span></pre>
19
21
  </body>
20
22
  </html>
@@ -5,14 +5,16 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>bytes (RFuzz::RandomGenerator)</title>
8
+ <title>byte_array (RFuzz::RandomGenerator)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/rfuzz/random.rb, line 83</span>
14
- 83: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bytes</span>(<span class="ruby-identifier">count</span>)
15
- 84: <span class="ruby-ivar">@rnd</span>.<span class="ruby-identifier">data</span>(<span class="ruby-identifier">count</span>)
16
- 85: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/rfuzz/random.rb, line 76</span>
14
+ 76: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">byte_array</span>(<span class="ruby-identifier">count</span>,<span class="ruby-identifier">length</span>=<span class="ruby-value">100</span>)
15
+ 77: <span class="ruby-identifier">list</span> = []
16
+ 78: <span class="ruby-identifier">count</span>.<span class="ruby-identifier">times</span> { <span class="ruby-identifier">list</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-ivar">@rnd</span>.<span class="ruby-identifier">data</span>(<span class="ruby-identifier">num</span>(<span class="ruby-identifier">length</span>)) }
17
+ 79: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">list</span>
18
+ 80: <span class="ruby-keyword kw">end</span></pre>
17
19
  </body>
18
20
  </html>
@@ -5,14 +5,14 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>num (RFuzz::RandomGenerator)</title>
8
+ <title>bytes (RFuzz::RandomGenerator)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/rfuzz/random.rb, line 88</span>
14
- 88: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">num</span>(<span class="ruby-identifier">max</span>)
15
- 89: <span class="ruby-identifier">ints</span>(<span class="ruby-value">1</span>, <span class="ruby-identifier">max</span>)[<span class="ruby-value">0</span>]
16
- 90: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/rfuzz/random.rb, line 83</span>
14
+ 83: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bytes</span>(<span class="ruby-identifier">count</span>)
15
+ 84: <span class="ruby-ivar">@rnd</span>.<span class="ruby-identifier">data</span>(<span class="ruby-identifier">count</span>)
16
+ 85: <span class="ruby-keyword kw">end</span></pre>
17
17
  </body>
18
18
  </html>
@@ -5,18 +5,14 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>ints (RFuzz::RandomGenerator)</title>
8
+ <title>num (RFuzz::RandomGenerator)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/rfuzz/random.rb, line 96</span>
14
- 96: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ints</span>(<span class="ruby-identifier">count</span>, <span class="ruby-identifier">max</span> = <span class="ruby-keyword kw">nil</span>)
15
- 97: <span class="ruby-identifier">i</span> = <span class="ruby-ivar">@rnd</span>.<span class="ruby-identifier">data</span>(<span class="ruby-identifier">count</span> <span class="ruby-operator">*</span> <span class="ruby-value">4</span>).<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">&quot;N*&quot;</span>)
16
- 98: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">max</span>
17
- 99: <span class="ruby-identifier">i</span> = <span class="ruby-identifier">i</span>.<span class="ruby-identifier">collect</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span> <span class="ruby-identifier">i</span> <span class="ruby-operator">%</span> <span class="ruby-identifier">max</span> }
18
- 100: <span class="ruby-keyword kw">end</span>
19
- 101: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">i</span>
20
- 102: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/rfuzz/random.rb, line 88</span>
14
+ 88: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">num</span>(<span class="ruby-identifier">max</span>)
15
+ 89: <span class="ruby-identifier">ints</span>(<span class="ruby-value">1</span>, <span class="ruby-identifier">max</span>)[<span class="ruby-value">0</span>]
16
+ 90: <span class="ruby-keyword kw">end</span></pre>
21
17
  </body>
22
18
  </html>
@@ -5,14 +5,18 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>floats (RFuzz::RandomGenerator)</title>
8
+ <title>ints (RFuzz::RandomGenerator)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/rfuzz/random.rb, line 105</span>
14
- 105: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">floats</span>(<span class="ruby-identifier">count</span>)
15
- 106: <span class="ruby-ivar">@rnd</span>.<span class="ruby-identifier">data</span>(<span class="ruby-identifier">count</span> <span class="ruby-operator">*</span> <span class="ruby-value">8</span>).<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">&quot;G*&quot;</span>)
16
- 107: <span class="ruby-keyword kw">end</span></pre>
13
+ <pre> <span class="ruby-comment cmt"># File lib/rfuzz/random.rb, line 96</span>
14
+ 96: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ints</span>(<span class="ruby-identifier">count</span>, <span class="ruby-identifier">max</span> = <span class="ruby-keyword kw">nil</span>)
15
+ 97: <span class="ruby-identifier">i</span> = <span class="ruby-ivar">@rnd</span>.<span class="ruby-identifier">data</span>(<span class="ruby-identifier">count</span> <span class="ruby-operator">*</span> <span class="ruby-value">4</span>).<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">&quot;N*&quot;</span>)
16
+ 98: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">max</span>
17
+ 99: <span class="ruby-identifier">i</span> = <span class="ruby-identifier">i</span>.<span class="ruby-identifier">collect</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span> <span class="ruby-identifier">i</span> <span class="ruby-operator">%</span> <span class="ruby-identifier">max</span> }
18
+ 100: <span class="ruby-keyword kw">end</span>
19
+ 101: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">i</span>
20
+ 102: <span class="ruby-keyword kw">end</span></pre>
17
21
  </body>
18
22
  </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>floats (RFuzz::RandomGenerator)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre> <span class="ruby-comment cmt"># File lib/rfuzz/random.rb, line 105</span>
14
+ 105: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">floats</span>(<span class="ruby-identifier">count</span>)
15
+ 106: <span class="ruby-ivar">@rnd</span>.<span class="ruby-identifier">data</span>(<span class="ruby-identifier">count</span> <span class="ruby-operator">*</span> <span class="ruby-value">8</span>).<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">&quot;G*&quot;</span>)
16
+ 107: <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -86,18 +86,18 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000074">dump</a>&nbsp;&nbsp;
90
- <a href="#M000077">keys</a>&nbsp;&nbsp;
91
- <a href="#M000081">mark</a>&nbsp;&nbsp;
92
- <a href="#M000079">mean</a>&nbsp;&nbsp;
93
- <a href="#M000071">new</a>&nbsp;&nbsp;
94
- <a href="#M000072">reset</a>&nbsp;&nbsp;
95
- <a href="#M000073">sample</a>&nbsp;&nbsp;
96
- <a href="#M000080">sd</a>&nbsp;&nbsp;
97
- <a href="#M000082">tick</a>&nbsp;&nbsp;
98
- <a href="#M000078">to_hash</a>&nbsp;&nbsp;
99
- <a href="#M000075">to_s</a>&nbsp;&nbsp;
100
- <a href="#M000076">values</a>&nbsp;&nbsp;
89
+ <a href="#M000075">dump</a>&nbsp;&nbsp;
90
+ <a href="#M000078">keys</a>&nbsp;&nbsp;
91
+ <a href="#M000082">mark</a>&nbsp;&nbsp;
92
+ <a href="#M000080">mean</a>&nbsp;&nbsp;
93
+ <a href="#M000072">new</a>&nbsp;&nbsp;
94
+ <a href="#M000073">reset</a>&nbsp;&nbsp;
95
+ <a href="#M000074">sample</a>&nbsp;&nbsp;
96
+ <a href="#M000081">sd</a>&nbsp;&nbsp;
97
+ <a href="#M000083">tick</a>&nbsp;&nbsp;
98
+ <a href="#M000079">to_hash</a>&nbsp;&nbsp;
99
+ <a href="#M000076">to_s</a>&nbsp;&nbsp;
100
+ <a href="#M000077">values</a>&nbsp;&nbsp;
101
101
  </div>
102
102
  </div>
103
103
 
@@ -152,12 +152,12 @@
152
152
  <div id="methods">
153
153
  <h3 class="section-bar">Public Class methods</h3>
154
154
 
155
- <div id="method-M000077" class="method-detail">
156
- <a name="M000077"></a>
155
+ <div id="method-M000078" class="method-detail">
156
+ <a name="M000078"></a>
157
157
 
158
158
  <div class="method-heading">
159
- <a href="Sampler.src/M000077.html" target="Code" class="method-signature"
160
- onclick="popupCode('Sampler.src/M000077.html');return false;">
159
+ <a href="Sampler.src/M000078.html" target="Code" class="method-signature"
160
+ onclick="popupCode('Sampler.src/M000078.html');return false;">
161
161
  <span class="method-name">keys</span><span class="method-args">()</span>
162
162
  </a>
163
163
  </div>
@@ -170,12 +170,12 @@ values that this stats object is using.
170
170
  </div>
171
171
  </div>
172
172
 
173
- <div id="method-M000071" class="method-detail">
174
- <a name="M000071"></a>
173
+ <div id="method-M000072" class="method-detail">
174
+ <a name="M000072"></a>
175
175
 
176
176
  <div class="method-heading">
177
- <a href="Sampler.src/M000071.html" target="Code" class="method-signature"
178
- onclick="popupCode('Sampler.src/M000071.html');return false;">
177
+ <a href="Sampler.src/M000072.html" target="Code" class="method-signature"
178
+ onclick="popupCode('Sampler.src/M000072.html');return false;">
179
179
  <span class="method-name">new</span><span class="method-args">(name)</span>
180
180
  </a>
181
181
  </div>
@@ -186,12 +186,12 @@ values that this stats object is using.
186
186
 
187
187
  <h3 class="section-bar">Public Instance methods</h3>
188
188
 
189
- <div id="method-M000074" class="method-detail">
190
- <a name="M000074"></a>
189
+ <div id="method-M000075" class="method-detail">
190
+ <a name="M000075"></a>
191
191
 
192
192
  <div class="method-heading">
193
- <a href="Sampler.src/M000074.html" target="Code" class="method-signature"
194
- onclick="popupCode('Sampler.src/M000074.html');return false;">
193
+ <a href="Sampler.src/M000075.html" target="Code" class="method-signature"
194
+ onclick="popupCode('Sampler.src/M000075.html');return false;">
195
195
  <span class="method-name">dump</span><span class="method-args">(msg = &quot;&quot;, out=STDERR)</span>
196
196
  </a>
197
197
  </div>
@@ -204,12 +204,12 @@ additional message.
204
204
  </div>
205
205
  </div>
206
206
 
207
- <div id="method-M000081" class="method-detail">
208
- <a name="M000081"></a>
207
+ <div id="method-M000082" class="method-detail">
208
+ <a name="M000082"></a>
209
209
 
210
210
  <div class="method-heading">
211
- <a href="Sampler.src/M000081.html" target="Code" class="method-signature"
212
- onclick="popupCode('Sampler.src/M000081.html');return false;">
211
+ <a href="Sampler.src/M000082.html" target="Code" class="method-signature"
212
+ onclick="popupCode('Sampler.src/M000082.html');return false;">
213
213
  <span class="method-name">mark</span><span class="method-args">()</span>
214
214
  </a>
215
215
  </div>
@@ -226,12 +226,12 @@ meaningless.
226
226
  </div>
227
227
  </div>
228
228
 
229
- <div id="method-M000079" class="method-detail">
230
- <a name="M000079"></a>
229
+ <div id="method-M000080" class="method-detail">
230
+ <a name="M000080"></a>
231
231
 
232
232
  <div class="method-heading">
233
- <a href="Sampler.src/M000079.html" target="Code" class="method-signature"
234
- onclick="popupCode('Sampler.src/M000079.html');return false;">
233
+ <a href="Sampler.src/M000080.html" target="Code" class="method-signature"
234
+ onclick="popupCode('Sampler.src/M000080.html');return false;">
235
235
  <span class="method-name">mean</span><span class="method-args">()</span>
236
236
  </a>
237
237
  </div>
@@ -243,12 +243,12 @@ Calculates and returns the mean for the data passed so far.
243
243
  </div>
244
244
  </div>
245
245
 
246
- <div id="method-M000072" class="method-detail">
247
- <a name="M000072"></a>
246
+ <div id="method-M000073" class="method-detail">
247
+ <a name="M000073"></a>
248
248
 
249
249
  <div class="method-heading">
250
- <a href="Sampler.src/M000072.html" target="Code" class="method-signature"
251
- onclick="popupCode('Sampler.src/M000072.html');return false;">
250
+ <a href="Sampler.src/M000073.html" target="Code" class="method-signature"
251
+ onclick="popupCode('Sampler.src/M000073.html');return false;">
252
252
  <span class="method-name">reset</span><span class="method-args">()</span>
253
253
  </a>
254
254
  </div>
@@ -260,12 +260,12 @@ Resets the internal counters so you can start sampling again.
260
260
  </div>
261
261
  </div>
262
262
 
263
- <div id="method-M000073" class="method-detail">
264
- <a name="M000073"></a>
263
+ <div id="method-M000074" class="method-detail">
264
+ <a name="M000074"></a>
265
265
 
266
266
  <div class="method-heading">
267
- <a href="Sampler.src/M000073.html" target="Code" class="method-signature"
268
- onclick="popupCode('Sampler.src/M000073.html');return false;">
267
+ <a href="Sampler.src/M000074.html" target="Code" class="method-signature"
268
+ onclick="popupCode('Sampler.src/M000074.html');return false;">
269
269
  <span class="method-name">sample</span><span class="method-args">(s)</span>
270
270
  </a>
271
271
  </div>
@@ -277,12 +277,12 @@ Adds a sampling to the calculations.
277
277
  </div>
278
278
  </div>
279
279
 
280
- <div id="method-M000080" class="method-detail">
281
- <a name="M000080"></a>
280
+ <div id="method-M000081" class="method-detail">
281
+ <a name="M000081"></a>
282
282
 
283
283
  <div class="method-heading">
284
- <a href="Sampler.src/M000080.html" target="Code" class="method-signature"
285
- onclick="popupCode('Sampler.src/M000080.html');return false;">
284
+ <a href="Sampler.src/M000081.html" target="Code" class="method-signature"
285
+ onclick="popupCode('Sampler.src/M000081.html');return false;">
286
286
  <span class="method-name">sd</span><span class="method-args">()</span>
287
287
  </a>
288
288
  </div>
@@ -294,12 +294,12 @@ Calculates the standard deviation of the data so far.
294
294
  </div>
295
295
  </div>
296
296
 
297
- <div id="method-M000082" class="method-detail">
298
- <a name="M000082"></a>
297
+ <div id="method-M000083" class="method-detail">
298
+ <a name="M000083"></a>
299
299
 
300
300
  <div class="method-heading">
301
- <a href="Sampler.src/M000082.html" target="Code" class="method-signature"
302
- onclick="popupCode('Sampler.src/M000082.html');return false;">
301
+ <a href="Sampler.src/M000083.html" target="Code" class="method-signature"
302
+ onclick="popupCode('Sampler.src/M000083.html');return false;">
303
303
  <span class="method-name">tick</span><span class="method-args">()</span>
304
304
  </a>
305
305
  </div>
@@ -320,12 +320,12 @@ An example is:
320
320
  </div>
321
321
  </div>
322
322
 
323
- <div id="method-M000078" class="method-detail">
324
- <a name="M000078"></a>
323
+ <div id="method-M000079" class="method-detail">
324
+ <a name="M000079"></a>
325
325
 
326
326
  <div class="method-heading">
327
- <a href="Sampler.src/M000078.html" target="Code" class="method-signature"
328
- onclick="popupCode('Sampler.src/M000078.html');return false;">
327
+ <a href="Sampler.src/M000079.html" target="Code" class="method-signature"
328
+ onclick="popupCode('Sampler.src/M000079.html');return false;">
329
329
  <span class="method-name">to_hash</span><span class="method-args">()</span>
330
330
  </a>
331
331
  </div>
@@ -334,12 +334,12 @@ An example is:
334
334
  </div>
335
335
  </div>
336
336
 
337
- <div id="method-M000075" class="method-detail">
338
- <a name="M000075"></a>
337
+ <div id="method-M000076" class="method-detail">
338
+ <a name="M000076"></a>
339
339
 
340
340
  <div class="method-heading">
341
- <a href="Sampler.src/M000075.html" target="Code" class="method-signature"
342
- onclick="popupCode('Sampler.src/M000075.html');return false;">
341
+ <a href="Sampler.src/M000076.html" target="Code" class="method-signature"
342
+ onclick="popupCode('Sampler.src/M000076.html');return false;">
343
343
  <span class="method-name">to_s</span><span class="method-args">()</span>
344
344
  </a>
345
345
  </div>
@@ -351,12 +351,12 @@ Returns a common display (used by dump)
351
351
  </div>
352
352
  </div>
353
353
 
354
- <div id="method-M000076" class="method-detail">
355
- <a name="M000076"></a>
354
+ <div id="method-M000077" class="method-detail">
355
+ <a name="M000077"></a>
356
356
 
357
357
  <div class="method-heading">
358
- <a href="Sampler.src/M000076.html" target="Code" class="method-signature"
359
- onclick="popupCode('Sampler.src/M000076.html');return false;">
358
+ <a href="Sampler.src/M000077.html" target="Code" class="method-signature"
359
+ onclick="popupCode('Sampler.src/M000077.html');return false;">
360
360
  <span class="method-name">values</span><span class="method-args">()</span>
361
361
  </a>
362
362
  </div>