A better way is to assign some internal salt to the feature at creation time and use that, that way you are not dependent on something external that user (the creator of the feature flag) could change.
I bear the scars of this design mistake from when I worked for a company that provided feature flagging.
It was not my initial mistake, but I drew the short straw trying to work around it.