diff options
author | Vic (Chun-Ju) Yang <victoryang@chromium.org> | 2013-12-23 16:15:14 +0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2013-12-27 07:50:47 +0000 |
commit | 4e7e33f6e7fe114ef94b5e068d723f621e54e5ab (patch) | |
tree | 4110e0c2945e210d1f08967e426cce91a573c44b /test/mutex.c | |
parent | 1b1d2e999c7349e896121abec9515270a76072f9 (diff) | |
download | chrome-ec-4e7e33f6e7fe114ef94b5e068d723f621e54e5ab.tar.gz |
Move pseudo random number generator to common
We have three copies of the same pseudo random number generator in our
test codes. Let's consolidate them into a single copy in test_util.
BUG=chrome-os-partner:19235
TEST=Pass all tests
BRANCH=None
Change-Id: I7ea0b3476f3cfe6944855f19861e3c86af35807e
Signed-off-by: Vic (Chun-Ju) Yang <victoryang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/181085
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'test/mutex.c')
-rw-r--r-- | test/mutex.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/test/mutex.c b/test/mutex.c index 866a004a58..10cf300e22 100644 --- a/test/mutex.c +++ b/test/mutex.c @@ -15,12 +15,6 @@ static struct mutex mtx; -/* Linear congruential pseudo random number generator*/ -static uint32_t prng(uint32_t x) -{ - return 22695477 * x + 1; -} - /* period between 50us and 3.2ms */ #define PERIOD_US(num) (((num % 64) + 1) * 50) /* one of the 3 MTX3x tasks */ |