S
Simon
hi everyone
I'm trying to implement a Java-version of the perl-based "razor"-client.
razor is spamfilter using a client-server system where users can "vote" if
a message is spam or not. (it is commercially known under the name
"spamnet").
The client is able to choose random positions in a e-mail-message and
computes these parts of the message to build an identifier (hash).
The positions are chosen according to the following system:
srand(<server specified seed-number>);
rand(<length of message>); several times to chose portions of the text.
all clients and all servers have to use the same positions in order to
generate a comparable identifier for the message. This is my problem: if I
want to implement a Java-Client for this system, i have to be able to
generate the same "random" number sequence in Java. I need the source code
of the perl implementation of srand() and rand() to be able to do this. can
anyone point me in the right direction please?
thx
Simon
I'm trying to implement a Java-version of the perl-based "razor"-client.
razor is spamfilter using a client-server system where users can "vote" if
a message is spam or not. (it is commercially known under the name
"spamnet").
The client is able to choose random positions in a e-mail-message and
computes these parts of the message to build an identifier (hash).
The positions are chosen according to the following system:
srand(<server specified seed-number>);
rand(<length of message>); several times to chose portions of the text.
all clients and all servers have to use the same positions in order to
generate a comparable identifier for the message. This is my problem: if I
want to implement a Java-Client for this system, i have to be able to
generate the same "random" number sequence in Java. I need the source code
of the perl implementation of srand() and rand() to be able to do this. can
anyone point me in the right direction please?
thx
Simon