Q. Which PHP function generates a random string of bytes?

  • (A) rand_bytes()
  • (B) random_bytes()
  • (C) bytes_random()
  • (D) secure_bytes()
πŸ’¬ Discuss
βœ… Correct Answer: (B) random_bytes()
Explanation: random_bytes() generates cryptographically secure bytes.
Explanation by: Kanak Sharma
random_bytes() generates cryptographically secure bytes.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
55
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Kanak Sharma
Publisher
πŸ“ˆ
81%
Success Rate