-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
Labels
arch-wasmWebAssembly architectureWebAssembly architecturearea-System.SecurityuntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner
Description
Right now the System.Security.Cryptography tests uses a generic getRandomValues.
Microsoft provides a Web Cryptography polyfill API that can be used to provide the interface for testing within the CI.
Without a getRandomValues implementation the following is thrown in the CI.
ABORT: no cryptographic support found for random_device. consider polyfilling it if you want to use something insecure like Math.random(), e.g. put this in a --pre-js: var crypto = { getRandomValues: function(array) { for (var i = 0; i < array.length; i++) array[i] = (Math.random()*256)|0 } };
Metadata
Metadata
Assignees
Labels
arch-wasmWebAssembly architectureWebAssembly architecturearea-System.SecurityuntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner