X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Frandom.h;h=85959677a86ca5a6f3f74058e9190b89406771f7;hb=16aa47dbdde420fe82032f7d2e166fdf4e974df5;hp=b76f2e4590985935114425e0feb3ec1b56524e65;hpb=4944c86a9318bc5b5578ab145a95c116ffd2c9fd;p=pspp-builds.git diff --git a/src/random.h b/src/random.h index b76f2e45..85959677 100644 --- a/src/random.h +++ b/src/random.h @@ -1,5 +1,5 @@ /* PSPP - computes sample statistics. - Copyright (C) 1997-9, 2000 Free Software Foundation, Inc. + Copyright (C) 1997-9, 2000, 2005 Free Software Foundation, Inc. Written by Ben Pfaff . This program is free software; you can redistribute it and/or @@ -14,15 +14,18 @@ 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., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. */ -#if !random_h -#define random_h 1 +#ifndef RANDOM_H +#define RANDOM_H 1 -void setup_randomize (void); -double rand_uniform (double x); -double rand_normal (double x); -int rand_simple (int x); +#include + +void random_init (void); +void random_done (void); + +gsl_rng *get_rng (void); +void set_rng (unsigned long seed); #endif /* random.h */