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).
This commit is contained in:
Ayke van Laethem
2021-07-31 15:10:18 +02:00
committed by Ron Evans
parent ab47cea055
commit 478c592b13
7 changed files with 37 additions and 26 deletions
+1 -1
View File
@@ -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.