precompute.py: Switch embedded hash-based regression tests to sha1