benchmark/ycsb/insert.js
/**
 * Generates random string.
 * @returns {string} random string from possible characters
 **/
Generates random string.
@returns {string} random string from possible characters
Generates random string . @returns { string } random string from possible characters
function random_string(len) {
    let text = '';
    const possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
    for (let i = 0; i < len; i++) {
        text += possible.charAt(Math.floor(Math.random() * possible.length));
    }
    return text;
}
function random_string ( len ) { let text = '' ; const possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' ; for ( let i = 0 ; i < len ; i ++ ) { text += possible . charAt ( Math . floor ( Math . random ( ) * possible . length ) ) ; } return text ; }
Generates random string.
Generates random string .