Fix rand crate import
Fix some unnecessary_parens warnings
Merge pull request #14 from bjz/fix-build

Fix build