Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
goldbrick
on May 4, 2016
|
parent
|
context
|
favorite
| on:
Ruby Bug: SecureRandom should try /dev/urandom fir...
I don't understand. You may still pass nil explicitly if the argument defaults to 16?
infraruby
on May 4, 2016
[–]
Yes:
def f(n = 16) n end p f # => 16 p f(nil) # => nil
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: