Pseudorandomness for Network Algorithms