Subversion Repositories gelsvn

Rev

Rev 601 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
595 jab 1
/* ----------------------------------------------------------------------- *
2
 * This file is part of GEL, http://www.imm.dtu.dk/GEL
3
 * Copyright (C) the authors and DTU Informatics
4
 * For license and list of authors, see ../../doc/intro.pdf
5
 * ----------------------------------------------------------------------- */
6
 
60 jab 7
#include <time.h>
8
#include <iostream>
601 jab 9
#include "../CGLA/CGLA.h"
60 jab 10
#include "HashKey.h"
11
 
417 jrf 12
using namespace CGLA;
13
 
89 jab 14
namespace Util
60 jab 15
{
16
 
17
	int randoms1[UCHAR_MAX];
18
	int randoms2[UCHAR_MAX];
19
	int randoms3[UCHAR_MAX];
20
 
21
 
22
 
23
	bool init_randoms()
24
	{
417 jrf 25
		gel_srand(1);
60 jab 26
		int i;
27
		for(i=0;i<UCHAR_MAX-1;i++)
417 jrf 28
			randoms1[i] = gel_rand();
60 jab 29
		for(i=0;i<UCHAR_MAX-1;i++)
417 jrf 30
		randoms2[i] = gel_rand();
60 jab 31
		for(i=0;i<UCHAR_MAX-1;i++)
32
			{
417 jrf 33
				randoms3[i] = gel_rand();
60 jab 34
			}
35
		return true;
36
	}
37
 
38
	void do_init_randoms()
39
	{
609 jab 40
		init_randoms();
60 jab 41
	}
42
 
43
}