[racket] Parameterize current-seconds?

From: Scott Klarenbach (scott at pointyhat.ca)
Date: Mon Apr 1 17:22:00 EDT 2013

Unit testing session creations, etc.  I'm generating sha1 hashes based on
current-time and secrety key, and so if I can't parameterize it then I have
to allow the caller to provide the fake current time to the procedure just
so I can test it consistently.


On Mon, Apr 1, 2013 at 2:15 PM, Danny Yoo <dyoo at hashcollision.org> wrote:

> Hmmm... I don't think so.  Is there a application for which
> parameterizing current-seconds is useful?
>



-- 
Talk to you soon,

Scott Klarenbach

PointyHat Software Corp.
www.pointyhat.ca
p 604-568-4280
e scott at pointyhat.ca
200-1575 W. Georgia
Vancouver, BC V6G2V3

_______________________________________
To iterate is human; to recur, divine
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130401/b551f334/attachment.html>

Posted on the users mailing list.