lib/games_dice/bunch.rb in games_dice-0.3.10 vs lib/games_dice/bunch.rb in games_dice-0.3.11
- old
+ new
@@ -34,10 +34,10 @@
def initialize( options )
name_number_sides_from_hash( options )
keep_mode_from_hash( options )
if options[:prng]
- raise ":prng does not support the rand() method" if ! prng.respond_to?(:rand)
+ raise ":prng does not support the rand() method" if ! options[:prng].respond_to?(:rand)
end
if options[:rerolls] || options[:maps]
@single_die = GamesDice::ComplexDie.new( @sides, complex_die_params_from_hash( options ) )
else