dqvrlgi3247 2015-07-10 07:33
浏览 139
已采纳

让PHP访问/ dev / random的最佳方法是什么?

My OwnCloud installation is complaining about not having access to /dev/random. OwnCloud will request multiple random numbers from different sources and derive from these the final random number, and /dev/random is one of these sources.

Is adding /dev/random to open_base_dir a good idea? Ive read somewhere that it's not recommended. Is there a better way to solve this?

Thanks all!

  • 写回答

1条回答 默认 最新

  • drd0833 2015-07-29 13:17
    关注

    It's not a problem to add dev/urandom to open_base_dir and that will fix your ownCloud problem, but never add dev/random (without the u) as it can lack being fed enough entropy when generating the number.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!