Skip to content

Commit

Permalink
Added XML summary documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkCiliaVincenti committed Mar 13, 2022
1 parent e752844 commit 5632a58
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions ThreadSafeRandomizer/ThreadSafeRandomizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

namespace ThreadSafeRandomizer
{
/// <summary>
/// An efficient thread-safe randomizer.
/// </summary>
public class ThreadSafeRandomizer
{
private static readonly Random _global = new Random();
Expand All @@ -16,6 +19,9 @@ public class ThreadSafeRandomizer
return new Random(seed);
});

/// <summary>
/// Thread-safe <see cref="Random"/> instance.
/// </summary>
public static Random Instance => _local.Value;
}
}
8 changes: 4 additions & 4 deletions ThreadSafeRandomizer/ThreadSafeRandomizer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
<RepositoryUrl>https://github.com/MarkCiliaVincenti/ThreadSafeRandomizer.git</RepositoryUrl>
<PackageProjectUrl>https://github.com/MarkCiliaVincenti/ThreadSafeRandomizer</PackageProjectUrl>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<Version>1.0.0</Version>
<Version>1.0.1</Version>
<PackageIcon>logo.png</PackageIcon>
<PackageReleaseNotes>First release.</PackageReleaseNotes>
<PackageReleaseNotes>Added XML summary documentation.</PackageReleaseNotes>
<Description>An efficient thread-safe randomizer.</Description>
<Copyright>© 2022 Mark Cilia Vincenti</Copyright>
<PackageTags>random,randomizer,randomiser,threadsafe,thread-safe</PackageTags>
<RepositoryType>git</RepositoryType>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<FileVersion>1.0.0.0</FileVersion>
<AssemblyVersion>1.0.1.0</AssemblyVersion>
<FileVersion>1.0.1.0</FileVersion>
<PackageReadmeFile>README.md</PackageReadmeFile>
<IsPackable>true</IsPackable>
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
Expand Down

0 comments on commit 5632a58

Please sign in to comment.