소스 검색

虚拟点细节修改

Shun 2 년 전
부모
커밋
c3441a1215
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      src/YSAI.DAQ/YSAI.Core/YSAI.Core.csproj
  2. 2 2
      src/YSAI.DAQ/YSAI.Core/virtualAddress/VirtualAddress.cs

+ 1 - 1
src/YSAI.DAQ/YSAI.Core/YSAI.Core.csproj

@@ -5,7 +5,7 @@
     <ImplicitUsings>enable</ImplicitUsings>
     <Nullable>enable</Nullable>
     <GeneratePackageOnBuild>True</GeneratePackageOnBuild>
-    <Version>1.0.0.68</Version>
+    <Version>1.0.0.69</Version>
     <Authors>Shun</Authors>
     <Company>YSAI</Company>
     <Product>SCADA</Product>

+ 2 - 2
src/YSAI.DAQ/YSAI.Core/virtualAddress/VirtualAddress.cs

@@ -174,9 +174,9 @@ namespace YSAI.Core.virtualAddress
         /// <returns></returns>
         private string ByteRandom(Random random)
         {
-            byte[] dataArray = new byte[10];
+            byte[] dataArray = new byte[new Random().Next(100)];
             random.NextBytes(dataArray);
-            return dataArray[0].ToString("x2");
+            return dataArray.HexToStr();
         }
 
         /// <summary>