aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/crypto
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2021-07-31 15:10:18 +0200
committerRon Evans <[email protected]>2021-08-05 19:01:14 +0200
commit478c592b131b21506e50ed1793b09689f0da456f (patch)
tree4afd68b4b0bf3cc83e84a0ba0b76d4ae4e63c7d4 /src/crypto
parentab47cea055d24e06135ba4d7d896dc6e8837f8d7 (diff)
downloadtinygo-478c592b131b21506e50ed1793b09689f0da456f.tar.gz
tinygo-478c592b131b21506e50ed1793b09689f0da456f.zip
wasm: add support for the crypto/rand package
This is done via wasi-libc and the WASI interface, for ease of maintenance (only one implementation for both WASI and JS/browsers).
Diffstat (limited to 'src/crypto')
-rw-r--r--src/crypto/rand/rand_getentropy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/rand/rand_getentropy.go b/src/crypto/rand/rand_getentropy.go
index 661132fb7..4cd037956 100644
--- a/src/crypto/rand/rand_getentropy.go
+++ b/src/crypto/rand/rand_getentropy.go
@@ -1,4 +1,4 @@
-// +build darwin freebsd wasi
+// +build darwin freebsd tinygo.wasm
// This implementation of crypto/rand uses the getentropy system call (available
// on both MacOS and WASI) to generate random numbers.