|
LMMP 4.3.0
Lamina High-Precision Arithmetic Library
|
#include "lmmp/lmmpn.h"#include "lmmp/mprand.h"#include "lmmp/secret.h"#include "lmmp/version.h"#include "cases.h"#include "support/lmmp_test_utils.h"#include <string.h>函数 | |
| TEST_CASE ("rng/basic", global_random_reproducible) | |
| TEST_CASE ("rng/basic", seed_random_reproducible) | |
| Copyright (C) 2026 HJimmyK (Jericho Knox) | |
| TEST_CASE ("rng/strong", strong_random) | |
| TEST_CASE ("rng/strong", strong_rng_extern_reproducible) | |
| void | test_random (void) |
| Copyright (C) 2026 HJimmyK (Jericho Knox) | |
| TEST_CASE | ( | "rng/basic" | , |
| global_random_reproducible | ) |
在文件 test_random.c 第 53 行定义.
引用了 an, bn, lmmp_free(), lmmp_global_rng_init_(), lmmp_random_(), n, TEST_CASE , 以及 TEST_CHECK_EQ.
| TEST_CASE | ( | "rng/basic" | , |
| seed_random_reproducible | ) |
Copyright (C) 2026 HJimmyK (Jericho Knox)
This file is part of LMMP.
LMMP is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library. If not, see https://www.gnu.org/licenses/.
SPDX-License-Identifier: LGPL-3.0-or-later
在文件 test_random.c 第 32 行定义.
引用了 an, bn, lmmp_free(), lmmp_seed_random_(), n, TEST_CASE, TEST_CHECK_EQ , 以及 TEST_CHECK_MSG.
| TEST_CASE | ( | "rng/strong" | , |
| strong_random | ) |
在文件 test_random.c 第 69 行定义.
引用了 an, bn, k, lmmp_free(), lmmp_strong_random_(), lmmp_strong_rng_free_(), lmmp_strong_rng_init_(), n, TEST_CASE , 以及 TEST_CHECK_MSG.
| TEST_CASE | ( | "rng/strong" | , |
| strong_rng_extern_reproducible | ) |
在文件 test_random.c 第 90 行定义.
引用了 lmmp_free(), lmmp_strong_random_(), lmmp_strong_rng_extern_(), lmmp_strong_rng_free_(), lmmp_strong_rng_init_(), TEST_CASE, TEST_CHECK_EQ , 以及 TEST_CHECK_MSG.
| void test_random | ( | void | ) |
Copyright (C) 2026 HJimmyK (Jericho Knox)
This file is part of LMMP.
LMMP is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library. If not, see https://www.gnu.org/licenses/.
SPDX-License-Identifier: LGPL-3.0-or-later
在文件 test_random.c 第 117 行定义.
引用了 test_random() , 以及 TEST_RUN.
被这些函数引用 main() , 以及 test_random().