소스 검색

修正部分linux环境下生成随机bytes错误

tags/6.0.0
llgoer 4 년 전
부모
커밋
22e5fd9a44
1개의 변경된 파일6개의 추가작업 그리고 5개의 파일을 삭제
  1. +6
    -5
      src/include/common.func.php

+ 6
- 5
src/include/common.func.php 파일 보기

@@ -67,6 +67,12 @@ function dede_random_bytes($length)
{
return FALSE;
}

if (function_exists('openssl_random_pseudo_bytes'))
{
return openssl_random_pseudo_bytes($length);
}

if (function_exists('random_bytes'))
{
try
@@ -93,11 +99,6 @@ function dede_random_bytes($length)
}
}

if (function_exists('openssl_random_pseudo_bytes'))
{
return openssl_random_pseudo_bytes($length);
}

return FALSE;
}



불러오는 중...
취소
저장