Subversion Repositories gelsvn

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
660 khor 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
 
7
#include <time.h>
8
#include <iostream>
9
#include "../CGLA/CGLA.h"
10
#include "HashKey.h"
11
 
12
using namespace CGLA;
13
 
14
namespace Util
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
	{
25
		gel_srand(1);
26
		int i;
27
		for(i=0;i<UCHAR_MAX-1;i++)
28
			randoms1[i] = gel_rand();
29
		for(i=0;i<UCHAR_MAX-1;i++)
30
		randoms2[i] = gel_rand();
31
		for(i=0;i<UCHAR_MAX-1;i++)
32
			{
33
				randoms3[i] = gel_rand();
34
			}
35
		return true;
36
	}
37
 
38
	void do_init_randoms()
39
	{
40
		init_randoms();
41
	}
42
 
43
}