| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2000-12-03 00:00 UTC] sniper@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 00:00:01 2025 UTC | 
When I use the crypt() function to generate hashes the salts are not randomly generated. An example: #/usr/local/bin/php <?php print crypt("salt")."\n"; print crypt("thesame")."\n"; print crypt("again")."\n"; ?> Output: i3lCe7C6q27tM i3vw3zP1zAXbk i3DLFUqiVZx.U (Adding srand ((double) microtime() * 1000000); in the beginning didn't help)