﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
306	psRandom.h not included in pslib.h	Paul Price	robert.desonia@…	"There is no #include line for psRandom.h in pslib.h (or its dependencies), which
leads to errors when compiling code that uses psRandom:

price@mithrandir:/home/mithrandir/price/testing>make
gcc -c -O0 -g -std=c99 -D_GNU_SOURCE
-I/home/mithrandir/price/psLib4/psLib/include/
-L/home/mithrandir/price/psLib4/psLib/lib/ testFFT.c
testFFT.c: In function `main':
testFFT.c:22: warning: initialization makes integer from pointer without a cast
testFFT.c:25: `psRandom' undeclared (first use in this function)
testFFT.c:25: (Each undeclared identifier is reported only once
testFFT.c:25: for each function it appears in.)
testFFT.c:25: `rng' undeclared (first use in this function)
testFFT.c:25: warning: implicit declaration of function `psRandomAlloc'
testFFT.c:25: `PS_RANDOM_TAUS' undeclared (first use in this function)
testFFT.c:26: warning: implicit declaration of function `psRandomUniform'
make: *** [testFFT.o] Error 1

price@mithrandir:/home/mithrandir/price/psLib4/psLib/include>grep psRandom.h *.h
psRandom.h:/** @file psRandom.h


tst_psRandom.c includes psRandom.h explicitly, which does not suitably mimic the
true situation where the developer only includes pslib.h.

Workaround is to #include psRandom.h explicitly."	defect	closed	high		types	0.4.0	minor	fixed		
