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 <d...@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 sc...@pointyhat.ca 200-1575 W. Georgia Vancouver, BC V6G2V3 _______________________________________ To iterate is human; to recur, divine
____________________ Racket Users list: http://lists.racket-lang.org/users