Distributed Computing And Cryptography With General Weak Random Sources