add .gitignore
switch to secure random calls
fix 'OSX not defined' error
Merge pull request #7 from ryancdotorg/master

various fixes, thank you rian.