aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/vic/files/patch-main
blob: 7a217d731fd3c0a19e5d537a2377c19190f24b0d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
--- main.cpp    Tue Feb 25 12:55:08 2003
+++ main.cpp    Tue Mar 22 12:37:51 2005
@@ -363,36 +363,4 @@
 #endif
 
-/*
- * From the RTP spec.
- */
-u_int32_t
-heuristic_random()
-{
-   struct {
-       struct  timeval tv;
-       clock_t cpu;
-       pid_t   pid;
-       u_long  hid;
-       uid_t   uid;
-       gid_t   gid;
-       struct  utsname name;
-   } s;
-
-   gettimeofday(&s.tv, 0);
-   uname(&s.name);
-   s.cpu  = clock();
-   s.pid  = getpid();
-   s.hid  = gethostid();
-   s.uid  = getuid();
-   s.gid  = getgid();
-
-   MD5_CTX context;
-   MD5Init(&context);
-   MD5Update(&context, (u_char*)&s, sizeof(s));
-   u_int32_t out[4];
-   MD5Final((u_char *)out, &context);
-   return (out[0] ^ out[1] ^ out[2] ^ out[3]);
-}
-
 void loadbitmaps(Tcl_Interp* tcl)
 {
@@ -407,5 +375,5 @@
 }
 
-extern "C" int Tk_StripchartCmd(ClientData, Tcl_Interp*, int ac, char** av);
+extern "C" int Tk_StripchartCmd(ClientData, Tcl_Interp*, int ac, const char** av);
 #ifdef WIN32
 extern "C" int WinPutsCmd(ClientData, Tcl_Interp*, int ac, char** av);
@@ -433,5 +401,5 @@
 main(int argc, const char** argv)
 {
-   srandom(heuristic_random());
+   srandomdev();
 
 #ifdef SIGHUP