CL 622042 added rand as a compiler builtin, but did not update builtinlist.
Also update the mkbuiltin comment to refer to the current file location,
and add a comment for runtime.rand that it is called from the compiler.
For #54766
Change-Id: I99d2c0bb0658da333775afe2ed0447265c845c82
Reviewed-on: https://go-review.googlesource.com/c/go/+/626755
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
{"runtime.efaceeq", 1},
{"runtime.panicrangestate", 1},
{"runtime.deferrangefunc", 1},
+ {"runtime.rand", 1},
{"runtime.rand32", 1},
{"runtime.makemap64", 1},
{"runtime.makemap", 1},
//go:build ignore
-// Generate builtinlist.go from cmd/compile/internal/typecheck/builtin/runtime.go.
+// Generate builtinlist.go from cmd/compile/internal/typecheck/_builtin/runtime.go.
package main
}
// rand returns a random uint64 from the per-m chacha8 state.
+// This is called from compiler-generated code.
+//
// Do not change signature: used via linkname from other packages.
//
//go:nosplit