× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Nathan wrote

So you can sort of control the readability of result strings

Doesn't that kind of defeat the purpose? Surely a GUID (or random string)
should not be human readable? If a human can read any part of it the effect
is weakened (IMHO)?

Maurice




-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of Nathan Andelin
Sent: 08 September 2008 19:17
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] Random String Generator

Maurice O'Prey wrote:
Just curious myself, how does your version stand up to .NET
... GUID = System.GUID.NewGuid().ToString()

I think NewGuid() generates strings based on timestamps, so the
resulting string is mostly hex digits, while ranString() has optional
parameters for specifying the size of the string you want returned (a
range), and the consonants and vowels you want it to be based on, and
the vowel weight, and flags to include digits and uppercase characters.
So you can sort of control the readability of result strings.

Nathan.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.