Sha256: db594e0008378a56dfd81d2524966008f13fbf764cdb2e59b87a0b8f684a3a13
Contents?: true
Size: 1.4 KB
Versions: 4
Compression:
Stored size: 1.4 KB
Contents
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>base64 (RFuzz::RandomGenerator)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> <pre> <span class="ruby-comment cmt"># File lib/rfuzz/random.rb, line 65</span> 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>) 66: <span class="ruby-identifier">list</span> = [] 67: <span class="ruby-identifier">count</span>.<span class="ruby-identifier">times</span> { 68: <span class="ruby-identifier">list</span> <span class="ruby-operator"><<</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>))) 69: } 70: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">list</span> 71: <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
4 entries across 4 versions & 1 rubygems