WordPress.WP.AlternativeFunctions.rand_seeding_mt_srand

rand seeding mt srand

The plugin uses a random function that may not be appropriate for the task.

medium weight

Why It Shows Up

The scan found functions such as `rand()`, `mt_rand()`, `srand()`, or `mt_srand()`.

Why It Matters

General random functions are not suitable for security-sensitive tokens and manual seeding can reduce randomness.

How to Fix

  • Use `wp_rand()` for ordinary WordPress randomness.
  • Use PHP cryptographic randomness for security-sensitive tokens.
  • Avoid manual random seeding unless there is a narrow, documented reason.

Affected Plugins

RankPluginScoreErrorsWarningsInstallsUpdatedTop Issue
#1wpForo Forum174,0332,92220k+Unsafe Printing Function
#2Advanced File Manager – Ultimate File Manager for WordPress And Document Library Solution191,218901100k+Exception Not Escaped
#3Duplicator – Backups & Migration Plugin – Cloud Backups, Scheduled Backups, & More212,5721,2771m+Output Not Escaped
#4Content Egg – Affiliate Product Importer & Price Comparison231,2311,25710k+Non Prefixed Variable Found
#5Ezoic2343251610k+Output Not Escaped
#6MyWorks Sync for WooCommerce & QuickBooks Online232,2929,1015k+Non Prefixed Variable Found
#7WHMCS Bridge232474724k+Recommended
#8Iptanus File Upload245091,32510k+Non Prefixed Function Found
#9Contact Form Email254098989k+Non Prefixed Variable Found
#10WPBruiser {no- Captcha anti-Spam}2564625910k+Non Singular String Literal Domain
#11Plover Kit – Blocks, Patterns, Responsive Layout and Gutenberg Editor Enhancements256851,3823k+Non Prefixed Variable Found
#12WPS Bidouille2847221510k+Output Not Escaped
#13DoLogin Security293123057k+Output Not Escaped
#14Invisible reCaptcha for WordPress309018580k+Input Not Sanitized
#15Brozzme DB Prefix & Tools Addons3524429k+Missing Unslash
#16Website Pop-up Builder by BDOW! (formerly Sumo): Pop-ups + forms for email opt-ins and lead generation37423310k+Output Not Escaped
#17RSS Feed Retriever612387k+wp function not compatible with requires wp