logging: rename crypto scope to random (#1070)

This is to avoid a collision with an emerging wasi-crypto. They will
have both wasi-random and wasi-crypto

Signed-off-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
Crypt Keeper
2023-01-28 13:15:28 +02:00
committed by GitHub
parent 599c097603
commit bd9a791c7a
11 changed files with 40 additions and 40 deletions

View File

@@ -16,7 +16,7 @@ func Test_crypto(t *testing.T) {
var log bytes.Buffer
loggingCtx := context.WithValue(testCtx, experimental.FunctionListenerFactoryKey{},
logging.NewHostLoggingListenerFactory(&log, logging.LogScopeCrypto))
logging.NewHostLoggingListenerFactory(&log, logging.LogScopeRandom))
stdout, stderr, err := compileAndRun(loggingCtx, "crypto", wazero.NewModuleConfig())