FACT++  1.0
void rand_tmout_init ( )

Definition at line 148 of file open_dns.c.

References get_node_addr(), get_proc_name(), and MAX_TASK_NAME.

Referenced by init_dns_list().

149 {
150  char pid_str[MAX_TASK_NAME];
151  int ip, pid;
152  extern int get_node_addr();
153  extern int get_proc_name();
154 
155  get_node_addr((char *)&ip);
156  get_proc_name(pid_str);
157  sscanf(pid_str,"%d",&pid);
158  srand((unsigned)(ip+pid));
159 }
int get_node_addr(char *node_addr)
Definition: utilities.c:98
#define MAX_TASK_NAME
Definition: dim.h:181
int get_proc_name(char *proc_name)
Definition: utilities.c:22

+ Here is the call graph for this function:

+ Here is the caller graph for this function: