diff options
author | Ayke van Laethem <[email protected]> | 2024-01-18 21:27:08 +0100 |
---|---|---|
committer | Ayke van Laethem <[email protected]> | 2024-01-19 13:46:27 +0100 |
commit | e9003e2deb42df657a10726641fe3b8461567a03 (patch) | |
tree | 35dbefb457b624242608cf6039e334e3261376a1 /builder/musl.go | |
parent | 204659bdcd71e7601f077c246a97176a3e88075f (diff) | |
download | tinygo-e9003e2deb42df657a10726641fe3b8461567a03.tar.gz tinygo-e9003e2deb42df657a10726641fe3b8461567a03.zip |
runtime: add runtime.rand function
This function is needed for Go 1.22, and is used from various packages
like math/rand.
When there is no random number generator available, it falls back to a
static sequence of numbers. I think this is fine, because as far as I
can see it is only used for non-cryptographic needs.
Diffstat (limited to 'builder/musl.go')
-rw-r--r-- | builder/musl.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builder/musl.go b/builder/musl.go index 6ae1fda06..9b5c52704 100644 --- a/builder/musl.go +++ b/builder/musl.go @@ -119,6 +119,7 @@ var Musl = Library{ "internal/syscall_ret.c", "internal/vdso.c", "legacy/*.c", + "linux/*.c", "malloc/*.c", "malloc/mallocng/*.c", "mman/*.c", |