本文整理汇总了Python中r2.lib.utils.modhash函数的典型用法代码示例。如果您正苦于以下问题:Python modhash函数的具体用法?Python modhash怎么用?Python modhash使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了modhash函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: modhash
def modhash(self, rand=None, test=False):
if c.oauth_user:
# OAuth clients should never receive a modhash of any kind
# as they could use it in a CSRF attack to bypass their
# permitted OAuth scopes.
return None
return modhash(self, rand = rand, test = test)
示例2: modhash
def modhash(self, rand=None, test=False):
return modhash(self, rand = rand, test = test)