dotnet / dotnet/dotnet-api-docs

Document thread safety of RandomNumberGenerator

Open
#3,741 5 comments 5 reactions 0 assignees View on GitHub
area-System.Security Pri3 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

**Issue description**
I cannot find information w.r.t. the thread safety of members of `System.Security.Cryptorgraphy.RandomNumberGenerator`. Knowing if calls must be synchronized by the caller is important.

`RNGCryptoServiceProvider.GetBytes` is thread safe according to the documentation.

**Target framework**
- [x] .NET Core
- [x] .NET Framework
- [x] .NET Standard

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.