-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update crypto getRandomValues function
- Loading branch information
1 parent
01a8595
commit 2fcb3d4
Showing
2 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
packages/examples/sdk-react-native/patches/react-native-get-random-values+1.9.0.patch
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
diff --git a/node_modules/react-native-get-random-values/index.js b/node_modules/react-native-get-random-values/index.jsindex d5a72cc..dacd0f0 100644 | ||
--- a/node_modules/react-native-get-random-values/index.js | ||
+++ b/node_modules/react-native-get-random-values/index.js | ||
@@ -74,6 +74,6 @@ if (typeof global.crypto !== 'object') { | ||
global.crypto = {} | ||
} | ||
|
||
-if (typeof global.crypto.getRandomValues !== 'function') { | ||
+// if (typeof global.crypto.getRandomValues !== 'function') { | ||
global.crypto.getRandomValues = getRandomValues | ||
-} | ||
+// } |
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