Fix bug in GetBlockValue() that can cause bogus random seeds