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.

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

报告相同问题?

悬赏问题

  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记