/*#*
*#* $Log$
- *#* Revision 1.15 2007/02/13 15:09:19 asterix
- *#* Fix bug in randpool_getN.
+ *#* Revision 1.16 2007/02/13 15:11:37 asterix
+ *#* Typo.
*#*
*#* Revision 1.14 2007/02/13 09:57:12 asterix
*#* Add directive #if in struct EntropyPool, and remove #else in randpool_add.
/*Hash previous state of pool*/
md2_update(&context, &pool->pool_entropy[i], CONFIG_MD2_BLOCK_LEN);
- memcpy(&data[prev], md2_end(&context), len);
+ memcpy(&data[pos_write], md2_end(&context), len);
pos_write += len; //Update number of block has been written in data.
n -= len; //Number of byte copied in data.