projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
6e9bf1c5d72d430c75be9a8fe2a9800167ed88ef
[platform/framework/web/crosswalk-tizen.git]
/
1
define(['./choice'], function (choice) {
2
3
var _chars = '0123456789abcdef'.split('');
4
5
/**
6
* Returns a random hexadecimal string
7
*/
8
function randHex(size){
9
size = size && size > 0? size : 6;
10
var str = '';
11
while (size--) {
12
str += choice(_chars);
13
}
14
return str;
15
}
16
17
return randHex;
18
19
});