https://bugzilla.wikimedia.org/show_bug.cgi?id=35894

--- Comment #4 from Daniel Friesen <mediawiki-b...@nadir-seen-fire.com> 
2012-04-12 04:38:52 UTC ---
(In reply to comment #3)
> Looking at CryptRand, it shouldn't be too hard to make it run standalone on
> Windows (saving an install of MW in IIS or whatever).. Might be able to ease
> testing
> 
> 
> I wonder if this is something we can unit test?

Actually. I needed random tokens inside of Gareth and couldn't find an
acceptable source built into Symfony. So I already ported a version of
CryptRand without MediaWiki specific code:
https://github.com/dantman/gareth/blob/master/src/Gareth/GarethWebBundle/Libs/CryptRand.php

Just strip out the 'namespace ...;` and you should have yourself something that
works on it's own. Throw an echo inside the debug() method and you should have
debug output too.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to