[MacRuby-devel] [MacRuby] #434: MacRuby should use arc4random() rather than random()
MacRuby
ruby-noreply at macosforge.org
Mon Nov 16 11:32:26 PST 2009
#434: MacRuby should use arc4random() rather than random()
---------------------------+------------------------------------------------
Reporter: jkh@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone: MacRuby 0.5
Component: MacRuby | Keywords: security crypto
---------------------------+------------------------------------------------
Recent discussion in #433 pointed out a flaw in using rand(), leading to
the more pertinent observation that anything wanting genuinely
cryptographic randomness should use arc4random(). See man page for
arc4random() for instructions on how to use it as a drop-in replacement
for random() / srandom().
--
Ticket URL: <http://www.macruby.org/trac/ticket/434>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list