In CLRS it is stated that the class $\mathcal{H}_{p, m} = \{ h_{ab}:\mathbf{Z}_p \to \mathbf{Z}_m \mid a \in \mathbf{Z}_p^*, b \in \mathbf{Z}_p\}$, $h_{ab}(x) = (ax+b) \mod p \mod m$, $m < p$ prime has $p(p-1)$ members. However, I don't see why some of these functions couldn't turn out to be the same. I've investigated on my own, and found that keeping $b$ fixed, all $a \in \mathbf{Z}_p^*$ do indeed give different functions; I take $b = 0$ and then show that if $h_{a0}^{-1}(m\mathbf{Z} \cap \mathbf{Z}_p) = \{x, 2x, \ldots, rx\}$ and $h_{a'0}^{-1}(m\mathbf{Z} \cap \mathbf{Z}_p) = \{y, 2y, \ldots, ry\}$, $r = \lfloor p/m \rfloor$, then since $r < p/2$ and $\mathbf{Z}_p = \{x, 2x, \ldots, rx, (r+1)x, \ldots, px\}$, writing $cx = y$ we'll have some $d$ with $dcx = dy \notin \{x, 2x, \ldots, rx\}$, i.e. sets $\{x, 2x, \ldots, rx\}$ and $\{y, 2y, \ldots, ry\}$ are different, i.e. $h_{a'0} \neq h_{b'0}$. (I apologize for messy shorthand.)
But I have no idea how to extend this to arbitrary $(a, b)$ and $(a', b')$, and somewhat doubt if it's worth it. (Maybe there's a simpler way of looking at this?) Nonetheless I intensely dislike the feeling of having to take such things on faith, and there's maybe something elementary that i'm missing, so I'm asking for help.