Using hashlib for test seed creation.

This makes seeds deterministic in Python3.