gnu-crypto-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNU Crypto] Ent bug, Version 2.0.1


From: Karsten Tinnefeld
Subject: [GNU Crypto] Ent bug, Version 2.0.1
Date: Fri, 12 Mar 2004 12:11:37 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.5) Gecko/20031007

Dear gnu-crypto-developers:

the Ent tool to determine basic statistical parameters of an RNG seems to have a little effect: once it examines the distribution of a generator which delivers a Chi2-Value of exactly .5, the for-loop in line 332 of Ent.java will never be broken and the array CHI_SQUARE_P will be accessed at the (illegal) position CHI_SQUARE_P[0][-1].

Adding a line before line 337, saying { if (i < 0) i = 0; } cures the problem.

Best wishes,
Karsten
--
Karsten Tinnefeld                                 address@hidden
Silberknapp 68
44227 Dortmund                                        T +49 231  773812
Deutschland                      M +49 178 2808107    F +49 231 9710384






reply via email to

[Prev in Thread] Current Thread [Next in Thread]