Added random SHA1 generation.