mirror of
https://github.com/coder/coder.git
synced 2025-07-21 01:28:49 +00:00
fix(loadtest): use cryptorand.String
to generate user password (#7006)
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user