#6648: random seed identical among preforked FastCGI instances
---------------------------------------+------------------------------------
          Reporter:  [EMAIL PROTECTED]  |         Owner:  nobody                
          
            Status:  new               |     Milestone:                         
         
         Component:  Uncategorized     |       Version:  SVN                    
         
        Resolution:                    |      Keywords:  random seed fastcgi 
fcgi prefork
             Stage:  Unreviewed        |     Has_patch:  1                      
         
        Needs_docs:  0                 |   Needs_tests:  0                      
         
Needs_better_patch:  0                 |  
---------------------------------------+------------------------------------
Changes (by peritus <[EMAIL PROTECTED]>):

  * has_patch:  0 => 1
  * stage:  Design decision needed => Unreviewed

Comment:

 I can reproduce this - my users could :(

 Given the following view and lighty+fastcgi+prefork:
 {{{
 def do_random(request):
     return HttpResponse(random.sample('ABCDEFGHIJKLMNOPQRSTUVWXYZ', 5))
 }}}

 Produces in subsequent requests:
 {{{
 XDQIU AJMNL JIQXN XDQIU IROXL AJMNL YAPJL CUYOK ODKLA JIQXN WACZR IROXL
 CYUJE SNQLX YAPJL CUYOK UMOWL ODKLA PIXQG WACZR CYUJE
 }}}

 which is *NOT* random.

 Applying the patch, the same view produces
 {{{
 QBLDN THPXF VSJQB RIPTF EZQRL OSNZY HQSOB VJSED HQBTO UTOJI VSTFY NHPBY
 QMITZ WJGZB QVDRN QCIOT GWYVQ RGZHE TXHKI
 }}}

 which seems fairly random.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/6648#comment:2>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to