Hash Families and Applications to t-Restrictions