Changes in Recent Go Versions
This chapter is about the changes introduced in the latest Go versions.
First, we will see what has changed about the random number generation capabilities of Go. More specifically, we will talk about rand.Seed()
.
The remainder of the chapter is about Go 1.21 and Go 1.22, which at the time of writing are the latest Go versions. We should not forget that a programming language is also a piece of software developed by programmers. Therefore, programming languages and compilers are being improved all the time with new functionality, better code generation, code optimizations, and faster operation. We close this chapter by discussing the most important improvements introduced in Go versions 1.21 and 1.22.
We will cover the following topics:
- About
rand.Seed()
- What is new in Go 1.21?
- What is new in Go 1.22?
The first section discusses the rand.Seed()
function and why it is not necessary to use it, starting from Go...