head 1.1; branch 1.1.1; access ; symbols initial:1.1.1.1 keithp:1.1.1; locks ; strict; comment @# @; 1.1 date 2005.07.30.18.55.53; author keithp; state Exp; branches 1.1.1.1; next ; commitid 74aa42ebcd284567; 1.1.1.1 date 2005.07.30.18.55.53; author keithp; state Exp; branches ; next ; commitid 74aa42ebcd284567; desc @@ 1.1 log @Initial revision @ text @#!/usr/bin/env nickle /* * makedata.5c - generate random 128 bit integer pairs * * Copyright © 2005, Keith Packard * * This program is free software; you can redistribute it and/or modify * it under the terms of version 2.1 of the GNU Lesser Public License as * published by the Free Software Foundation. * * 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 Lesser Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ int nsets = string_to_integer (argv[1]); for (int n = 0; n < nsets; n++) { for (int i = 0; i < 2; i++) printf ("%x ", PRNG::randbits(PRNG::randint(126) + 1) * (PRNG::randint(2) * 2 - 1)); printf ("\n"); } @ 1.1.1.1 log @Import test framework for validating wide integer implementation @ text @@