Skip to content

[Refactoring] Replace Rng.NextInt() as source for activity request codes #67

@thomasgalliker

Description

@thomasgalliker

Description

Today, different way to generate activity request codes are used. Clarify what is the best and safest way to generate such codes.
var requestCode = Rng.NextInt()
var aRequestCode = Guid.NewGuid().GetHashCode();

Background & Context

We want to avoid possible collisions if we generate duplicate request codes. Or, at least we want to check if this can happen at all.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions