mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
2765398421
Differential Revision: https://phabricator.services.mozilla.com/D139919
9 lines
392 B
Plaintext
9 lines
392 B
Plaintext
/*
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
/* mock crypto module for benchmarks and unit tests or std::random_device fails at runtime */
|
|
var crypto = { getRandomValues: function(array) { for (var i = 0; i < array.length; i++) array[i] = (Math.random()*256)|0 } }; |