Skip to content
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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

dementeddevil
Copy link

@dementeddevil dementeddevil commented Mar 1, 2019

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.

…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
@fabiob
Copy link

fabiob commented Jul 13, 2019

@moonpyk, are you still active here? I'm really interested in this PR.

@moonpyk
Copy link
Owner

moonpyk commented Jul 17, 2019

@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>
Copy link
Owner

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>
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants