From e02be6c15beddec976220bce2ee1a68520286c01 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 12 Dec 2004 22:58:53 +0000 Subject: * fix include file names in installed header files * add browsing API * add new tool pabrowse * add typeid subsystem * bump API version * split off random.c * add an identification cookie git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@320 fefdeb5f-60dc-0310-8127-8f9354f1896f --- polyp/core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'polyp/core.c') diff --git a/polyp/core.c b/polyp/core.c index 03682fdc..c213faa0 100644 --- a/polyp/core.c +++ b/polyp/core.c @@ -39,6 +39,7 @@ #include "xmalloc.h" #include "subscribe.h" #include "props.h" +#include "random.h" struct pa_core* pa_core_new(struct pa_mainloop_api *m) { struct pa_core* c; @@ -84,9 +85,10 @@ struct pa_core* pa_core_new(struct pa_mainloop_api *m) { c->resample_method = PA_RESAMPLER_SRC_SINC_FASTEST; pa_property_init(c); + + pa_random(&c->cookie, sizeof(c->cookie)); pa_check_signal_is_blocked(SIGPIPE); - return c; } -- cgit