Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 149600
Collapse All | Expand All

(-)./3party/jrtplib/rtprandom.cpp (-1 / +1 lines)
Lines 53-59 Link Here
53
	x = (u_int32_t)getpid();
53
	x = (u_int32_t)getpid();
54
	x += (u_int32_t)time(0);
54
	x += (u_int32_t)time(0);
55
	x -= (u_int32_t)clock();
55
	x -= (u_int32_t)clock();
56
	x ^= (u_int64_t)(this);
56
	x ^= (u_int32_t)(this);
57
57
58
#ifdef RTP_SUPPORT_GNUDRAND
58
#ifdef RTP_SUPPORT_GNUDRAND
59
	srand48_r(x,&drandbuffer);
59
	srand48_r(x,&drandbuffer);
(-)./src/libpsi/psiwidgets/iconaction.cpp (-1 / +1 lines)
Lines 72-78 Link Here
72
72
73
			QMap<QPopupMenu *, int>::Iterator it = popups.begin();
73
			QMap<QPopupMenu *, int>::Iterator it = popups.begin();
74
			for ( ; it != popups.end(); ++it ) {
74
			for ( ; it != popups.end(); ++it ) {
75
				if ( (int64_t)it.key() == (int64_t)obj ) {
75
				if ( (int)it.key() == (int)obj ) {
76
					dirty = true;
76
					dirty = true;
77
					popups.remove( it );
77
					popups.remove( it );
78
					break;
78
					break;
(-)./voip/stun.cpp (-3 / +3 lines)
Lines 673-684 Link Here
673
      asm("rdtsc" : "=A" (tick));
673
      asm("rdtsc" : "=A" (tick));
674
#elif defined (__SUNPRO_CC) || defined( __sparc__ )	
674
#elif defined (__SUNPRO_CC) || defined( __sparc__ )	
675
      tick = gethrtime();
675
      tick = gethrtime();
676
#else /* #elif defined(__MACH__) */
676
#elif defined(__MACH__) 
677
      int fd=open("/dev/random",O_RDONLY);
677
      int fd=open("/dev/random",O_RDONLY);
678
      read(fd,&tick,sizeof(tick));
678
      read(fd,&tick,sizeof(tick));
679
      closesocket(fd);
679
      closesocket(fd);
680
//#else
680
#else
681
//#     error Need some way to seed the random number generator 
681
#     error Need some way to seed the random number generator 
682
#endif 
682
#endif 
683
      int seed = int(tick);
683
      int seed = int(tick);
684
#ifdef WIN32
684
#ifdef WIN32

Return to bug 149600