Skip to content

Commit

Permalink
Adressing obsolecence warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tjaskula committed Dec 11, 2022
1 parent edbeda5 commit 298f750
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Vlingo.Xoom.UUID/RandomBasedGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ public class RandomBasedGenerator

/// <summary>
/// Creates an instance of random number based UUID generator according to RFC4122 (version-4).
/// It uses <see cref="RNGCryptoServiceProvider"/> as the random number generator.
/// It uses <see cref="RandomNumberGenerator"/> as the random number generator.
/// </summary>
public RandomBasedGenerator() : this(new RNGCryptoServiceProvider())
public RandomBasedGenerator() : this(RandomNumberGenerator.Create())
{
}

Expand Down
2 changes: 1 addition & 1 deletion src/Vlingo.Xoom.UUID/TimeBasedGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace Vlingo.Xoom.UUID;
/// </summary>
public sealed class TimeBasedGenerator
{
private static readonly RandomNumberGenerator RandomGenerator = new RNGCryptoServiceProvider();
private static readonly RandomNumberGenerator RandomGenerator = RandomNumberGenerator.Create();
private static readonly DateTimeOffset ClockStart = new DateTimeOffset(1582, 10, 15, 0, 0, 0, TimeSpan.Zero);

private readonly byte[] _macAddressBytes;
Expand Down

0 comments on commit 298f750

Please sign in to comment.