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

@@ -52,8 +52,8 @@ func TestLogScopes_String(t *testing.T) {
{name: "none", scopes: LogScopeNone, expected: ""},
{name: "any", scopes: LogScopeAll, expected: "all"},
{name: "filesystem", scopes: LogScopeFilesystem, expected: "filesystem"},
{name: "crypto", scopes: LogScopeCrypto, expected: "crypto"},
{name: "filesystem|crypto", scopes: LogScopeFilesystem | LogScopeCrypto, expected: "filesystem|crypto"},
{name: "random", scopes: LogScopeRandom, expected: "random"},
{name: "filesystem|random", scopes: LogScopeFilesystem | LogScopeRandom, expected: "filesystem|random"},
{name: "undefined", scopes: 1 << 3, expected: fmt.Sprintf("<unknown=%d>", (1 << 3))},
}