Merge pull request #40 from h4xxel/master

lolololololol
Fixed memory leak
srandom -> rand