Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(296)

Unified Diff: LayoutTests/crypto/resources/random-values-concurrent.js

Issue 16820007: Expose crypto.getRandomValues() to workers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/crypto/resources/random-values-concurrent.js
diff --git a/LayoutTests/crypto/resources/random-values-concurrent.js b/LayoutTests/crypto/resources/random-values-concurrent.js
new file mode 100644
index 0000000000000000000000000000000000000000..71c07118eae3e4e059ab21de7371354b3ed93164
--- /dev/null
+++ b/LayoutTests/crypto/resources/random-values-concurrent.js
@@ -0,0 +1,4 @@
+// Compute some random values and reply with it.
+var sample = new Uint8Array(100);
+crypto.getRandomValues(sample);
+self.postMessage(sample);

Powered by Google App Engine
This is Rietveld 408576698