-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor refactoring of cuid internals #3
base: master
Are you sure you want to change the base?
Conversation
…m class. Fixed potential bug in DateTime usage - uses UtcNow instead of Now.
NCuid project supports .NET Standard 2.0 and .NET 4.6
…e the seed integer during construction of per-thread Random objects for better pseudo-randomness.
Reinstated version generation using MSBuild custom task
@moonpyk, are you still active here? I'm really interested in this PR. |
@fabiob Yup I'm still active, just back from holidays, I'll try to have a look on your PR ASAP, sorry for the wait |
@@ -8,14 +8,15 @@ | |||
<AppDesignerFolder>Properties</AppDesignerFolder> | |||
<RootNamespace>NCuid.Tests</RootNamespace> | |||
<AssemblyName>NCuid.Tests</AssemblyName> | |||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> | |||
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was the target framework change an obligation ?
@@ -1,7 +1,7 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> | |||
<PropertyGroup> | |||
<AssemblyVersion>1.0.0.*</AssemblyVersion> | |||
<AssemblyVersion>1.0.0.0</AssemblyVersion> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please leave the star at the end?
Refactored random block generation logic to avoid recreation of Random class. (deals with issue in tracker)
Use of Random class is now thread-safe (using thread-local wrapper).
Random class is initialised using a cryptographically secure random seed.
Fixed potential bug in DateTime usage - uses UtcNow instead of Now.
Project file updated to generate .NET Standard 2.0 and .NET 4.6 assemblies.