[polypaudio-commits] r745 - in /trunk/src/polypcore: random.c random.h
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Tue Apr 18 08:40:36 PDT 2006
Author: lennart
Date: Tue Apr 18 17:40:36 2006
New Revision: 745
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=745&root=polypaudio&view=rev
Log:
* fix pa_random_seet() function prototype
* drop pa_ prefix from pa_random_proper(), because it is a static function
Modified:
trunk/src/polypcore/random.c
trunk/src/polypcore/random.h
Modified: trunk/src/polypcore/random.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polypcore/random.c?rev=745&root=polypaudio&r1=744&r2=745&view=diff
==============================================================================
--- trunk/src/polypcore/random.c (original)
+++ trunk/src/polypcore/random.c Tue Apr 18 17:40:36 2006
@@ -40,7 +40,7 @@
static const char *devices[] = { "/dev/urandom", "/dev/random", NULL };
-static int pa_random_proper(void *ret_data, size_t length) {
+static int random_proper(void *ret_data, size_t length) {
assert(ret_data && length);
#ifdef OS_IS_WIN32
@@ -75,10 +75,10 @@
#endif /* OS_IS_WIN32 */
}
-void pa_random_seed() {
+void pa_random_seed(void) {
unsigned int seed;
- if (pa_random_proper(&seed, sizeof(unsigned int)) < 0) {
+ if (random_proper(&seed, sizeof(unsigned int)) < 0) {
if (!has_whined)
pa_log_warn(__FILE__": failed to get proper entropy. Falling back to seeding with current time.");
has_whined = 1;
@@ -95,7 +95,7 @@
assert(ret_data && length);
- if (pa_random_proper(ret_data, length) >= 0)
+ if (random_proper(ret_data, length) >= 0)
return;
if (!has_whined)
Modified: trunk/src/polypcore/random.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polypcore/random.h?rev=745&root=polypaudio&r1=744&r2=745&view=diff
==============================================================================
--- trunk/src/polypcore/random.h (original)
+++ trunk/src/polypcore/random.h Tue Apr 18 17:40:36 2006
@@ -22,7 +22,7 @@
USA.
***/
-void pa_random_seed();
+void pa_random_seed(void);
void pa_random(void *ret_data, size_t length);
#endif
More information about the pulseaudio-commits
mailing list