Moved the assignment of rnum into the crypto() function.
Merge branch 'master' into threading
Added multithreading to the crypto() function.