/* GPT - Grid Python Toolkit Copyright (C) 2020 Christoph Lehner (christoph.lehner@ur.de, https://github.com/lehner/gpt) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include #include extern void* cgpt_rng_test_create(int iengine); extern void cgpt_rng_test_destroy(void* t); extern double cgpt_rng_test_GetU01(void* param, void* state); extern unsigned long cgpt_rng_test_GetBits(void* param, void* state); extern void cgpt_rng_test_Write(void* state); int main(int argc, char* argv[]) { if (argc<3) return 1; int iengine = atoi(argv[1]); int mb = atoi(argv[2]); long count = mb * 1000 * 1000; void* p = cgpt_rng_test_create(iengine); if (!p) return 1; printf("#==================================================================\n"); printf("# generator cgpt_rng_%d seed = X\n",iengine); printf("#==================================================================\n"); printf("type: d\n"); printf("count: %ld\n",count); printf("numbit: 32\n"); for (long i=0;i