Replace setseed() and random() by some string magic on md5sums

The setseed() was nice, except it isn't portable