Browse Source
fixup! fix: Add NextBytes(Span<byte>) to RandomSource
pull/885/head
hikari
5 years ago
No known key found for this signature in database
GPG Key ID: 34518F494DC4569E
2 changed files with
4 additions and
4 deletions
-
src/Numerics/Numerics.csproj
-
src/Numerics/Random/RandomSource.cs
|
|
|
@ -2,7 +2,7 @@ |
|
|
|
<Project Sdk="Microsoft.NET.Sdk"> |
|
|
|
<PropertyGroup> |
|
|
|
<OutputType>Library</OutputType> |
|
|
|
<TargetFrameworks>net5.0;net461;net48;netstandard2.0</TargetFrameworks> |
|
|
|
<TargetFrameworks>net5.0;netcoreapp2.1;net461;net48;netstandard2.1;netstandard2.0</TargetFrameworks> |
|
|
|
<AssemblyName>MathNet.Numerics</AssemblyName> |
|
|
|
<RootNamespace>MathNet.Numerics</RootNamespace> |
|
|
|
<IsPackable>true</IsPackable> |
|
|
|
|
|
|
|
@ -469,8 +469,8 @@ namespace MathNet.Numerics.Random |
|
|
|
|
|
|
|
DoSampleBytes(buffer); |
|
|
|
} |
|
|
|
|
|
|
|
#if NETCOREAPP2_1_OR_GREATER
|
|
|
|
|
|
|
|
#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER
|
|
|
|
/// <summary>
|
|
|
|
/// Fills the elements of a specified array of bytes with random numbers.
|
|
|
|
/// </summary>
|
|
|
|
@ -532,7 +532,7 @@ namespace MathNet.Numerics.Random |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
#if NETCOREAPP2_1_OR_GREATER
|
|
|
|
#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER
|
|
|
|
/// <summary>
|
|
|
|
/// Fills the elements of a specified array of bytes with random numbers in full range, including zero and 255 (<see cref="F:System.Byte.MaxValue"/>).
|
|
|
|
/// </summary>
|
|
|
|
|