~ubuntu-branches/debian/squeeze/putty/squeeze

« back to all changes in this revision

Viewing changes to windows/winnoise.c

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2008-05-28 09:28:32 UTC
  • mfrom: (4.1.4 hardy)
  • Revision ID: james.westby@ubuntu.com-20080528092832-88epkb3d4s1zsw61
Tags: 0.60-3
* Move putty to Applications/Network/Communication menu sub-section.
* Use dh_desktop.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
{
20
20
    HANDLE srch;
21
21
    WIN32_FIND_DATA finddata;
 
22
    DWORD pid;
22
23
    char winpath[MAX_PATH + 3];
23
24
 
24
25
    GetWindowsDirectory(winpath, sizeof(winpath));
31
32
        FindClose(srch);
32
33
    }
33
34
 
 
35
    pid = GetCurrentProcessId();
 
36
    func(&pid, sizeof(pid));
 
37
 
34
38
    read_random_seed(func);
35
39
    /* Update the seed immediately, in case another instance uses it. */
36
40
    random_save_seed();
51
55
/*
52
56
 * This function is called every time the random pool needs
53
57
 * stirring, and will acquire the system time in all available
54
 
 * forms and the battery status.
 
58
 * forms.
55
59
 */
56
60
void noise_get_light(void (*func) (void *, int))
57
61
{