fix(loadtest): use cryptorand.String to generate user password (#7006)

This commit is contained in:
Colin Adler
2023-04-05 12:52:47 -05:00
committed by GitHub
parent 407f80a1ef
commit 72c84c5b0a

View File

@ -53,7 +53,7 @@ func (r *Runner) Run(ctx context.Context, id string, logs io.Writer) error {
r.client.LogBodies = true
_, _ = fmt.Fprintln(logs, "Generating user password...")
password, err := cryptorand.HexString(16)
password, err := cryptorand.String(16)
if err != nil {
return xerrors.Errorf("generate random password for user: %w", err)
}