Change salt generation to use random

Works much more quickly on ubuntu