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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
e90c78ce
Commit
e90c78ce
authored
Mar 16, 2004
by
hf@deer.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small fix
parent
ac9de85b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sql/item_strfunc.cc
sql/item_strfunc.cc
+2
-2
No files found.
sql/item_strfunc.cc
View file @
e90c78ce
...
...
@@ -2721,7 +2721,7 @@ String *Item_func_uuid::val_str(String *str)
{
ulong
tmp
=
sql_rnd_with_mutex
();
uchar
mac
[
6
];
unsigned
int
i
;
int
i
;
if
(
my_gethwaddr
(
mac
))
{
/*
...
...
@@ -2731,7 +2731,7 @@ String *Item_func_uuid::val_str(String *str)
randominit() here
*/
randominit
(
&
uuid_rand
,
tmp
+
(
ulong
)
current_thd
,
tmp
+
query_id
);
for
(
i
=
0
;
i
<
sizeof
(
mac
);
i
++
)
for
(
i
=
0
;
i
<
(
int
)
sizeof
(
mac
);
i
++
)
mac
[
i
]
=
(
uchar
)(
my_rnd
(
&
uuid_rand
)
*
255
);
}
s
=
clock_seq_and_node_str
+
sizeof
(
clock_seq_and_node_str
)
-
1
;
...
...
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