Commit d2fc3bd4 authored by unknown's avatar unknown

Merge neptunus.(none):/home/msvensson/mysql/bug13164/my50-bug13164

into  neptunus.(none):/home/msvensson/mysql/mysql-5.0

parents aab7ac88 17efbe9f
......@@ -94,8 +94,12 @@ void OS_Seed::GenerateSeed(byte* output, word32 sz)
OS_Seed::OS_Seed()
{
fd_ = open("/dev/urandom",O_RDONLY);
if (fd_ == -1)
{
fd_ = open("/dev/random",O_RDONLY);
if (fd_ == -1)
error_.SetError(OPEN_RAN_E);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment