summaryrefslogtreecommitdiffstats
path: root/polyp/core.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-12-12 22:58:53 +0000
committerLennart Poettering <lennart@poettering.net>2004-12-12 22:58:53 +0000
commite02be6c15beddec976220bce2ee1a68520286c01 (patch)
treeda9cfdfd7a254fa7e8e21b1ef29456b852dbc133 /polyp/core.c
parent9a01cf44f09e92e14a720f4f531e943a50f26b72 (diff)
* 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
Diffstat (limited to 'polyp/core.c')
-rw-r--r--polyp/core.c4
1 files changed, 3 insertions, 1 deletions
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;
}