Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
RNGCryptoServiceProvider.GetBytes 线程安全吗?我似乎在文档中找不到任何关于它的注释。
是的。它在“备注”部分:
字节数组的长度决定了产生多少加密强的随机字节。此方法是线程安全的。