diff options
author | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2013-03-29 21:51:37 +0000 |
---|---|---|
committer | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2013-03-29 21:51:37 +0000 |
commit | 9a953cc13bdfe58c521d769aeb2579d86930d421 (patch) | |
tree | 8640958b5370b19873c6f2cc9338c660bb677265 /src/VBox/Runtime/testcase | |
parent | 1cf8fd0deb9dcaeca33a3ebaf6ce9a399cb91753 (diff) | |
download | VirtualBox-svn-9a953cc13bdfe58c521d769aeb2579d86930d421.tar.gz |
tstUtf8.cpp: GetRandUtf16 shouldn't return endian indicators (0xfffe, 0xffff).
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@45253 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/Runtime/testcase')
-rw-r--r-- | src/VBox/Runtime/testcase/tstUtf8.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/VBox/Runtime/testcase/tstUtf8.cpp b/src/VBox/Runtime/testcase/tstUtf8.cpp index a5986097876..1bfe604e707 100644 --- a/src/VBox/Runtime/testcase/tstUtf8.cpp +++ b/src/VBox/Runtime/testcase/tstUtf8.cpp @@ -49,7 +49,7 @@ static RTUTF16 GetRandUtf16(void) RTUTF16 wc; do { - wc = (RTUTF16)RTRandU32Ex(1, 0xffff); + wc = (RTUTF16)RTRandU32Ex(1, 0xfffd); } while (wc >= 0xd800 && wc <= 0xdfff); return wc; } |