~ubuntu-branches/ubuntu/hardy/gnupg/hardy-updates

« back to all changes in this revision

Viewing changes to cipher/rndw32.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2005-12-16 16:57:39 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20051216165739-v0m2d1you6hd8jho
Tags: upstream-1.4.2
ImportĀ upstreamĀ versionĀ 1.4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 *
17
17
 * You should have received a copy of the GNU General Public License
18
18
 * along with this program; if not, write to the Free Software
19
 
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
 
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
 
20
 * USA.
20
21
 *
21
22
 *************************************************************************
22
23
 * The code here is based on code from Cryptlib 3.0 beta by Peter Gutmann.
654
655
        (*add) ( &kernelTime, sizeof (kernelTime), requester );
655
656
        (*add) ( &userTime, sizeof (userTime), requester );
656
657
 
657
 
        /* Get the minimum and maximum working set size for the current process */
 
658
        /* Get the minimum and maximum working set size for the
 
659
           current process */
658
660
        GetProcessWorkingSetSize (handle, &minimumWorkingSetSize,
659
661
                                          &maximumWorkingSetSize);
660
662
        (*add) ( &minimumWorkingSetSize,
661
 
                                   sizeof (&minimumWorkingSetSize), requester );
 
663
                                   sizeof (minimumWorkingSetSize), requester );
662
664
        (*add) ( &maximumWorkingSetSize,
663
 
                                   sizeof (&maximumWorkingSetSize), requester );
 
665
                                   sizeof (maximumWorkingSetSize), requester );
664
666
    }
665
667
 
666
668
 
688
690
        if (QueryPerformanceCounter (&performanceCount)) {
689
691
            if ( debug_me )
690
692
                log_debug ("rndw32#gather_random_fast: perf data\n");
691
 
            (*add) (&performanceCount, sizeof (&performanceCount), requester);
 
693
            (*add) (&performanceCount, sizeof (performanceCount), requester);
692
694
        }
693
695
        else { /* Millisecond accuracy at best... */
694
696
            DWORD aword = GetTickCount ();