Use just RAND() instead of RAND() + NOW() to avoid be coerced to an int and therefore not sub-second safe.

This commit is contained in:
Daniel Nichter
2012-06-06 13:52:17 -07:00
parent a178bb32f8
commit f4b3bdb88b
2 changed files with 2 additions and 2 deletions

View File

@@ -291,7 +291,7 @@ case $opt in
echo "OK"
fi
../util/checksum-test-dataset
ping=$(/tmp/12345/use -ss -e "SELECT MD5(RAND() + NOW())")
ping=$(/tmp/12345/use -ss -e "SELECT MD5(RAND())")
/tmp/12345/use -e "create table percona_test.sentinel(id int primary key, ping varchar(64) not null default '')"
/tmp/12345/use -e "insert into percona_test.sentinel(id, ping) values(1, '$ping')";
echo -n "Waiting for replication to finish..."