| Versionen | |
|---|---|
| drupal7 | public DatabaseConnection_sqlite::sqlFunctionRand($seed = NULL) |
SQLite compatibility implementation for the RAND() SQL function.
includes/
<?php
public function sqlFunctionRand($seed = NULL) {
if (isset($seed)) {
mt_srand($seed);
}
return mt_rand() / mt_getrandmax();
}
?>
Kommentare
Kommentar hinzufügen