Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
2b7a6945
Commit
2b7a6945
authored
Dec 17, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-maria
into janus.mylan:/usr/home/serg/Abk/mysql-maria
parents
79e40ef6
c4f4cd26
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
mysys/my_uuid.c
mysys/my_uuid.c
+3
-4
sql/mysqld.cc
sql/mysqld.cc
+1
-0
No files found.
mysys/my_uuid.c
View file @
2b7a6945
...
...
@@ -105,13 +105,12 @@ void my_uuid_init(ulong seed1, ulong seed2)
randominit() here.
*/
/* purecov: begin inspected */
my_rnd_init
(
&
uuid_rand
,
(
ulong
)
(
seed2
+
now
/
2
),
(
seed1
+
now
)
+
random
());
my_rnd_init
(
&
uuid_rand
,
(
ulong
)
(
seed2
+
now
/
2
),
now
+
random
());
for
(
i
=
0
;
i
<
sizeof
(
mac
);
i
++
)
mac
[
i
]
=
(
uchar
)(
my_rnd
(
&
uuid_rand
)
*
255
);
/* purecov: end */
/* purecov: end */
}
my_rnd_init
(
&
uuid_rand
,
(
ulong
)
(
seed1
+
now
),
(
ulong
)
(
now
/
2
+
seed2
+
getpid
()));
my_rnd_init
(
&
uuid_rand
,
(
ulong
)
(
seed1
+
now
),
(
ulong
)
(
now
/
2
+
getpid
()));
set_clock_seq
();
pthread_mutex_init
(
&
LOCK_uuid_generator
,
MY_MUTEX_INIT_FAST
);
}
...
...
sql/mysqld.cc
View file @
2b7a6945
...
...
@@ -3249,6 +3249,7 @@ static int init_server_components()
my_rnd_init
(
&
sql_rand
,(
ulong
)
server_start_time
,(
ulong
)
server_start_time
/
2
);
reset_floating_point_exceptions
();
init_thr_lock
();
my_uuid_init
(
my_rnd
(
&
sql_rand
),
12345
);
#ifdef HAVE_REPLICATION
init_slave_list
();
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment