xref: /aosp_15_r20/external/XNNPACK/preamble.js.lds (revision 4bdc94577ba0e567308109d787f7fec7b531ce36)
1*4bdc9457SAndroid Build Coastguard Worker/*
2*4bdc9457SAndroid Build Coastguard Worker * Copyright 2019 Google LLC
3*4bdc9457SAndroid Build Coastguard Worker *
4*4bdc9457SAndroid Build Coastguard Worker * This source code is licensed under the BSD-style license found in the
5*4bdc9457SAndroid Build Coastguard Worker * LICENSE file in the root directory of this source tree.
6*4bdc9457SAndroid Build Coastguard Worker */
7*4bdc9457SAndroid Build Coastguard Worker
8*4bdc9457SAndroid Build Coastguard Worker/* mock crypto module for benchmarks and unit tests or std::random_device fails at runtime */
9*4bdc9457SAndroid Build Coastguard Workervar crypto = { getRandomValues: function(array) { for (var i = 0; i < array.length; i++) array[i] = (Math.random()*256)|0 } };
10