inital import of tweetnacl indented code from https://gist.github.com/jedisct1/6043113
added quick random bytes function and header