Exercises
Try to do the following exercises:
- Make the necessary changes to
./ch02/genPass.go
to remove the call torand.Seed()
and replace it withrand.New(rand.NewSource(seed))
. - Similarly, make the necessary changes to
./ch02/randomNumbers.go
to replace the call torand.Seed()
withrand.New(rand.NewSource(seed))
.