Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
YCSB
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adnan Ahmad
YCSB
Commits
7bfe3bcd
Commit
7bfe3bcd
authored
9 years ago
by
Steffen Friedrich
Browse files
Options
Downloads
Patches
Plain Diff
[core] according to issue #279 RandomByteIterator now generates also some characters
parent
facb9fe4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/src/main/java/com/yahoo/ycsb/RandomByteIterator.java
+4
-4
4 additions, 4 deletions
core/src/main/java/com/yahoo/ycsb/RandomByteIterator.java
with
4 additions
and
4 deletions
core/src/main/java/com/yahoo/ycsb/RandomByteIterator.java
+
4
−
4
View file @
7bfe3bcd
...
...
@@ -34,11 +34,11 @@ public class RandomByteIterator extends ByteIterator {
int
bytes
=
Utils
.
random
().
nextInt
();
try
{
buffer
[
base
+
0
]
=
(
byte
)(((
bytes
)
&
31
)
+
' '
);
buffer
[
base
+
1
]
=
(
byte
)(((
bytes
>>
5
)
&
3
1
)
+
' '
);
buffer
[
base
+
2
]
=
(
byte
)(((
bytes
>>
10
)
&
31
)
+
' '
);
buffer
[
base
+
1
]
=
(
byte
)(((
bytes
>>
5
)
&
6
3
)
+
' '
);
buffer
[
base
+
2
]
=
(
byte
)(((
bytes
>>
10
)
&
95
)
+
' '
);
buffer
[
base
+
3
]
=
(
byte
)(((
bytes
>>
15
)
&
31
)
+
' '
);
buffer
[
base
+
4
]
=
(
byte
)(((
bytes
>>
20
)
&
3
1
)
+
' '
);
buffer
[
base
+
5
]
=
(
byte
)(((
bytes
>>
25
)
&
31
)
+
' '
);
buffer
[
base
+
4
]
=
(
byte
)(((
bytes
>>
20
)
&
6
3
)
+
' '
);
buffer
[
base
+
5
]
=
(
byte
)(((
bytes
>>
25
)
&
95
)
+
' '
);
}
catch
(
ArrayIndexOutOfBoundsException
e
)
{
/* ignore it */
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment