summaryrefslogtreecommitdiffstats
path: root/src/init
diff options
context:
space:
mode:
authorDavid Knaack <davidkna@users.noreply.github.com>2020-11-08 11:07:25 +0100
committerGitHub <noreply@github.com>2020-11-08 11:07:25 +0100
commit35a0a20f5c4fea6a08e1b91ff631b089eef8fc50 (patch)
treea55947a4945d3a68984e9437fd35814922af96fd /src/init
parent7450510327ef203bae866d9690d111f526aa61a6 (diff)
perf(init/pwsh): use get-random for session-key instead of invoking starship session (#1860)
Diffstat (limited to 'src/init')
-rw-r--r--src/init/starship.ps12
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init/starship.ps1 b/src/init/starship.ps1
index 77fe4290e..9a731c6ef 100644
--- a/src/init/starship.ps1
+++ b/src/init/starship.ps1
@@ -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]$_ })