/* * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ /* * This file contains implementations of the randomization functions * WebRtcSpl_RandU() * WebRtcSpl_RandN() * WebRtcSpl_RandUArray() * * The description header can be found in signal_processing_library.h * */ #include "common_audio/signal_processing/include/signal_processing_library.h" static const uint32_t kMaxSeedUsed = …; static const int16_t kRandNTable[] = …; static uint32_t IncreaseSeed(uint32_t* seed) { … } int16_t WebRtcSpl_RandU(uint32_t* seed) { … } int16_t WebRtcSpl_RandN(uint32_t* seed) { … } // Creates an array of uniformly distributed variables. int16_t WebRtcSpl_RandUArray(int16_t* vector, int16_t vector_length, uint32_t* seed) { … }