Remove random.Seed() call from robot-name's approach file

The Robot Name exercise has a Dig Deeper section which uses random.Seed(). However, this function has been deprecated in Go 1.20.

From the Go Documentation on random.Seed():

Deprecated: As of Go 1.20 there is no reason to call Seed with a random value. Programs that call Seed with a known value to get a specific sequence of results should use New(NewSource(seed)) to obtain a local random generator.

I created a PR to fix this, but let me know if this still needs some work.

3 Likes

Am I still missing something for this to get merged?
I think 2 people had a look at this already and there don’t seem to be any issues in the way of merging this as far as I can see.

I don’t think a Go maintainer commented yet. It should be approved and merged by a maintainer of that track. +cc @andrerfcsantos

1 Like