This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port to 2.1 - Fix performance regression in Guid.NewGuid on OSX (#29457)
We have recently removed dependency on the libuuid for Guid creation. Unfortunately, while the perf on Linux has improved, we have not noticed that the perf on OSX degraded 10 fold. This change fixes it by modifying the implementation of the underlying SystemNative_GetNonCryptographicallySecureRandomBytes to use arc4random like the uuid_generate_random that we were using before the libuuid dependency removal does.
- Loading branch information
1 parent
484f904
commit 6906dbf
Showing
3 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters