github.com/bananabytelabs/wazero@v0.0.0-20240105073314-54b22a776da8/internal/gojs/custom/crypto.go (about) 1 package custom 2 3 const ( 4 NameCrypto = "crypto" 5 NameCryptoGetRandomValues = "getRandomValues" 6 ) 7 8 // CryptoNameSection are the functions defined in the object named NameCrypto. 9 // Results here are those set to the current event object, but effectively are 10 // results of the host function. 11 var CryptoNameSection = map[string]*Names{ 12 NameCryptoGetRandomValues: { 13 Name: NameCryptoGetRandomValues, 14 ParamNames: []string{"r"}, 15 ResultNames: []string{"n"}, 16 }, 17 }