Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Sanddancer
on Nov 22, 2014
|
parent
|
context
|
favorite
| on:
Arc4random – randomization for all occasions
$RANDOM is shell-specific. bash has $RANDOM, ksh has $RANDOM, and zsh has $RANDOM, standard sh doesn't have it.
101914
on Nov 22, 2014
[–]
Ah, I had forgotten where this comes from. This makes sense; OpenBSD's default shell is pdksh or some derivative thereof, if I recall correctly.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: