use arc4random() instead of rand() on *BSD
Merge remote-tracking branch 'carbin/arc' into develop

This closes #28
add testme.sh