kopia lustrzana https://github.com/magicbug/Cloudlog
				
				
				
			Added '@' to prevent errors in the event we can't read /dev/urandom (as per b4cfc96f2a)
				
					
				
			
							rodzic
							
								
									ec0102da0f
								
							
						
					
					
						commit
						f79458a99d
					
				| 
						 | 
				
			
			@ -48,7 +48,7 @@ class PasswordHash {
 | 
			
		|||
	function get_random_bytes($count)
 | 
			
		||||
	{
 | 
			
		||||
		$output = '';
 | 
			
		||||
		if (is_readable('/dev/urandom') &&
 | 
			
		||||
		if (@is_readable('/dev/urandom') &&
 | 
			
		||||
		    ($fh = @fopen('/dev/urandom', 'rb'))) {
 | 
			
		||||
			$output = fread($fh, $count);
 | 
			
		||||
			fclose($fh);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Ładowanie…
	
		Reference in New Issue