mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-26 09:42:25 +00:00
The entropy pool is full of unsigned ints, not longs.
[originally from svn r3025]
This commit is contained in:
parent
f599817d78
commit
3ee06b8cc3
@ -1,4 +1,4 @@
|
|||||||
/* $Id: macpgkey.c,v 1.4 2003/03/29 23:07:55 ben Exp $ */
|
/* $Id: macpgkey.c,v 1.5 2003/03/29 23:57:55 ben Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2003 Ben Harris
|
* Copyright (c) 2003 Ben Harris
|
||||||
* Copyright (c) 1997-2003 Simon Tatham
|
* Copyright (c) 1997-2003 Simon Tatham
|
||||||
@ -123,7 +123,7 @@ static void mac_clickkey(WindowPtr window, EventRecord *event)
|
|||||||
switch (item) {
|
switch (item) {
|
||||||
case wiKeyGenerate:
|
case wiKeyGenerate:
|
||||||
SetControlMaximum(ks->progress, 1024);
|
SetControlMaximum(ks->progress, 1024);
|
||||||
ks->entropy = snewn(1024, long);
|
ks->entropy = snewn(1024, unsigned int);
|
||||||
ks->entropy_required = 1024;
|
ks->entropy_required = 1024;
|
||||||
ks->entropy_got = 0;
|
ks->entropy_got = 0;
|
||||||
ks->collecting_entropy = TRUE;
|
ks->collecting_entropy = TRUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user