~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/math/rand.cc

Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#include <drizzled/server_includes.h>
21
 
#include CSTDINT_H
 
20
#include "config.h"
22
21
#include <drizzled/function/math/rand.h>
23
22
#include <drizzled/session.h>
24
23
 
 
24
static uint32_t sql_rnd()
 
25
{
 
26
  return (uint32_t) (rand() * 0xffffffff); /* make all bits random */
 
27
}
 
28
 
 
29
 
25
30
void Item_func_rand::seed_random(Item *arg)
26
31
{
27
32
  /*