[PHP4BETA] CVS update: php4/ext/mcrypt
| From: | sas | Date: | Sun, 25 Apr 1999 21:50:24 +0000 |
| Subject: | [PHP4BETA] CVS update: php4/ext/mcrypt | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-532@lists.php.net to get a copy of this message | ||
Date: Sunday April 25, 1999 @ 17:50
Author: sas
Update of /repository/php4/ext/mcrypt
In directory php:/tmp/cvs-serv10447
Modified Files:
mcrypt.c
Log Message:
oops, the 0th byte should be set, too
Index: php4/ext/mcrypt/mcrypt.c
diff -u php4/ext/mcrypt/mcrypt.c:1.10 php4/ext/mcrypt/mcrypt.c:1.11
--- php4/ext/mcrypt/mcrypt.c:1.10 Sun Apr 25 17:49:01 1999
+++ php4/ext/mcrypt/mcrypt.c Sun Apr 25 17:50:24 1999
@@ -188,8 +188,8 @@
read(fd, iv, i);
close(fd);
} else {
- while(i--) {
- iv[i] = rand();
+ while(i) {
+ iv[--i] = rand();
}
}
RETURN_STRINGL(iv, size->value.lval, 0);
--
PHP 4 Beta