fix java to use /dev/urandom on *nix systems

close #9