[exim] [patch] generating random numbers for fun and profit

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Stanislaw Halik
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: [exim] [patch] generating random numbers for fun and profit
Heya,

I've made a tiny little patch implementing random numbers. It's
available at <http://tehran.lain.pl/stuff/exim4-rand.diff>

I tried implementing it as either a variable or as an "${eval:" token.
I failed at both. Variables can't be function pointers returning
(char *) and "${eval:" recognizes single-character tokens only.

I recall seeing someone query an SQL database to get a random numeric
value. That's the rationale for writing the code. Besides, there are
countless other applications for random numbers. Like BOFH excuses given
to spammers.

Hope you enjoy the patch.

-- 
Unix stuff      :: http://tehran.lain.pl
Yet Another RBL :: http://rbl.lain.pl