From 3fd637e44ce3c50206f1ea97c8ec17afd98a498e Mon Sep 17 00:00:00 2001 From: Ibrahim Islam Date: Tue, 20 Oct 2020 06:31:01 +0700 Subject: [PATCH] shortens unique id generation Former-commit-id: 577776f30fff0afc8d157dce914040dd8a1c1b28 --- FFMpegCore/FFMpeg/Pipes/PipeHelpers.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FFMpegCore/FFMpeg/Pipes/PipeHelpers.cs b/FFMpegCore/FFMpeg/Pipes/PipeHelpers.cs index 7e79f55..df7729d 100644 --- a/FFMpegCore/FFMpeg/Pipes/PipeHelpers.cs +++ b/FFMpegCore/FFMpeg/Pipes/PipeHelpers.cs @@ -8,7 +8,7 @@ static class PipeHelpers { static readonly string PipePrefix = Path.Combine(Path.GetTempPath(), "CoreFxPipe_"); - public static string GetUnqiuePipeName() => "FFMpegCore_" + Guid.NewGuid(); + public static string GetUnqiuePipeName() => "FFMpegCore_" + Guid.NewGuid("N").Substring(0, 5); public static string GetPipePath(string pipeName) {