You have to manually provide a seed every time you want a random number. Gophers will defend this with their dying breath.
Comment on Golang be like
yum13241@lemm.ee 1 year ago
This makes me not want to use Golang at all.
SouthernCanadian@sh.itjust.works 1 year ago
flame3244@lemmy.world 1 year ago
This is not needed anymore since version 1.20
SouthernCanadian@sh.itjust.works 1 year ago
That’s good to hear, but I wouldn’t choose to use a language that took 5 years to get that right, when most languages have it from day 1.
flame3244@lemmy.world 1 year ago
So what language would you chose then? Java, PHP, JavaScript? None of the big languages where perfect from day one and it does not really matter, since day one is over already.
AstridWipenaugh@lemmy.world 1 year ago
I assure you, the feeling is mutual.