perf(init/pwsh): use get-random for session-key instead of invoking starship session (#1860)

This commit is contained in:
David Knaack 2020-11-08 11:07:25 +01:00 committed by GitHub
parent 7450510327
commit 35a0a20f5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -66,4 +66,4 @@ function global:prompt {
$ENV:STARSHIP_SHELL = "powershell"
# Set up the session key that will be used to store logs
$ENV:STARSHIP_SESSION_KEY = (& ::STARSHIP:: session)
$ENV:STARSHIP_SESSION_KEY = -join ((48..57) + (65..90) + (97..122) | Get-Random -Count 16 | ForEach-Object { [char]$_ })