Class | RFuzz::RandomGenerator |
In: |
lib/rfuzz/random.rb
|
Parent: | Object |
Either initialized without a word dictionary or with one. If you initialize with a word dictionary then you can generate the random words, and is the expected behavior. You can use the "type" parameter to change the default type of generated content from words to any of the other types available [:base64,:uris,:byte_array,:ints,:floats].
The dict should just be an array of words.
Generates an array of base64 encoded chunks of garbage. The length=100 is the default and is a max, but the lengths are random.
Generates an array of garbage byte strings, these are binary strings so very nasty. As usual, length=100 is a max for the random lengths.
Returns a random hash of type (default :words) where the key=>value is randomly generated. This is aliased for RandomGenerator.queries and RandomGenerator.headers so that it is more readable.
types of generated hash garbage you can use. These "types" just translate to function calls on self.send(type,length).
An array of integers with a default max of max. The integers are 4 bytes and pulled from network encoding so they should be cross platform (meaning tests should run the same on all platforms).