Q. Which PHP function generates cryptographically secure random bytes?

  • (A) rand()
  • (B) mt_rand()
  • (C) random_bytes()
  • (D) uniqid()
πŸ’¬ Discuss
βœ… Correct Answer: (C) random_bytes()
Explanation: random_bytes() generates secure random data.
Explanation by: Yami Thakur
random_bytes() generates secure random data.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
70
Total Visits
πŸ“½οΈ
12 mo ago
Published
πŸŽ–οΈ
Yami Thakur
Publisher
πŸ“ˆ
98%
Success Rate